aboutsummaryrefslogtreecommitdiff
path: root/src/date-time.cpp
Commit message (Collapse)AuthorAgeFilesLines
* get event selection up-to-date with the spec, including showing in-progress ↵Charles Kerr2021-08-291-0/+10
| | | | events. add unit tests to cover event priority and display order.
* If possible, avoid deprecated g_time_zone_newRobert Tari2021-06-271-0/+11
| | | | fixes https://github.com/AyatanaIndicators/ayatana-indicator-datetime/issues/34
* -Made GCC 10.1.0 friendlyRobert Tari2020-07-171-0/+1
| | | | | | -Fixed to work with ECal 2.0 -Added libaccounts-glib dependency -Added mate-time-admin handler
* Fork ayatana-indicator-datetime from Ubuntu's indicator-datetime.Mike Gabriel2017-05-171-2/+2
|
* in DateTime class, make it harder to accidentally mix local and nonlocal ↵Charles Kerr2015-04-061-4/+14
| | | | timezones by replacing DateTime::DateTime(time_t) with two methods, DateTime::Local(time_t) and DateTime(GTimeZone*, time_t)
* make DateTime::is_same_day() fasterCharles Kerr2015-04-051-4/+6
|
* add the new Alarm class as an argument to the alarm queue classCharles Kerr2015-04-031-0/+10
|
* add DateTime::end_of_month(), DateTime::end_of_day(). Add unit tests for them.Charles Kerr2015-03-161-18/+42
|
* in DateTime::is_set(), include timezone testCharles Kerr2015-03-161-2/+0
|
* in DateTime::DateTime(GTimeZone*,GDateTime*), don't allow either argument to ↵Charles Kerr2015-03-161-23/+9
| | | | be nullptr
* in DateTime::Local() and DateTime::NowLocal(), avoid redundant construction ↵Charles Kerr2015-03-141-2/+2
| | | | of the local timezone.
* Add DateTime::start_of_day() to use instead of the add_hours(-hours()) ↵Charles Kerr2015-03-141-13/+64
| | | | | | | trick, which doesn't work on days when DST changes. Implementing this requires DateTime objects to keep their own GTimeZone pointer, since the one inside GDateTime is private and can't be used for DateTime::start_of_day()'s call to g_date_time_new(). As a result the public API of DateTime changes, since we'll need a GTimeZone when constructing or assigning from a GDateTime pointer.
* hw alarmsCharles Kerr2014-04-241-0/+5
|
* decouple the planner's states; need three separate sets: upcoming-now (for ↵Charles Kerr2014-03-091-2/+25
| | | | alarms in the current time), upcoming-calendar (to show events coming from the selected calendar date), and calendar-month (all the appointments in the month displayed in the menu).
* in DateTime::format(), don't assign NULL to a std::stringCharles Kerr2014-02-261-3/+9
|
* another pass at removing alarms from the menu once they're no longer ↵Charles Kerr2014-02-051-0/+18
| | | | upcoming. This version fixes the header's icon as well.
* as per review, don't inline unless there are performance issuesCharles Kerr2014-01-301-0/+17
|
* Alarms is going to need to know when the clock's minute changes. We already ↵Charles Kerr2014-01-221-40/+25
| | | | have a timer for that in Formatter, so move it from there to Clock and add a corresponding public signal Clock.minuteChanged that both Formatter and Alarms can use. Sync unit tests.
* move DateTime's impl from the header to a cc fileCharles Kerr2014-01-221-0/+157