diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2015-03-14 21:20:30 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2015-03-14 21:20:30 -0500 |
commit | db5b700c7c116c73283019b3fbf823a23639a405 (patch) | |
tree | 4ae03eb86bb71a9453286e015fcedd00774b2bca /COPYING | |
parent | 15ec7f61fa84a9a8b40c1c9fcfa6c2a268d3232b (diff) | |
download | ayatana-indicator-datetime-db5b700c7c116c73283019b3fbf823a23639a405.tar.gz ayatana-indicator-datetime-db5b700c7c116c73283019b3fbf823a23639a405.tar.bz2 ayatana-indicator-datetime-db5b700c7c116c73283019b3fbf823a23639a405.zip |
Add DateTime::start_of_day() to use instead of the add_hours(-hours()) 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.
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions