diff options
author | Mike McEwan <mike@lotusland.demon.co.uk> | 1999-06-23 01:50:04 +0800 |
---|---|---|
committer | Arturo Espinosa <unammx@src.gnome.org> | 1999-06-23 01:50:04 +0800 |
commit | 272857c73c1d7b92551d0ce12de43733ba10d50a (patch) | |
tree | d9a3583006a93b1fb22bf0d1034ce04d5297628d | |
parent | 7f81757d52326126f88e898241dc40c1668f5164 (diff) | |
download | gsoc2013-evolution-272857c73c1d7b92551d0ce12de43733ba10d50a.tar.gz gsoc2013-evolution-272857c73c1d7b92551d0ce12de43733ba10d50a.tar.zst gsoc2013-evolution-272857c73c1d7b92551d0ce12de43733ba10d50a.zip |
Tell ktime' that we don't know about daylight saving time so that it does
1999-06-07 Mike McEwan <mike@lotusland.demon.co.uk>
* timeutil.c (time_add_month): Tell ktime' that we don't know
about daylight saving time so that it does *not* make adjustments
when we traverse a DST boundary.
(time_year_begin): ditto.
(time_year_end): ditto.
(time_month_begin): ditto.
(time_month_end): ditto.
svn path=/trunk/; revision=986
-rw-r--r-- | calendar/ChangeLog | 10 | ||||
-rw-r--r-- | calendar/timeutil.c | 5 |
2 files changed, 15 insertions, 0 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 0d9afa0a6f..1b4a413eb2 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,13 @@ +1999-06-07 Mike McEwan <mike@lotusland.demon.co.uk> + + * timeutil.c (time_add_month): Tell ktime' that we don't know + about daylight saving time so that it does *not* make adjustments + when we traverse a DST boundary. + (time_year_begin): ditto. + (time_year_end): ditto. + (time_month_begin): ditto. + (time_month_end): ditto. + 1999-06-16 Anders Carlsson <anders.carlsson@tordata.se> * main.c (new_calendar): Realize the toplevel widget when diff --git a/calendar/timeutil.c b/calendar/timeutil.c index c03f2cb565..77a468471e 100644 --- a/calendar/timeutil.c +++ b/calendar/timeutil.c @@ -147,6 +147,7 @@ time_add_month (time_t time, int months) */ tm->tm_mon += months; + tm->tm_isdst = -1; if ((new_time = mktime (tm)) == -1){ g_warning ("mktime could not handling adding a month with\n"); print_time_t (time); @@ -232,6 +233,7 @@ time_year_begin (time_t t) tm.tm_sec = 0; tm.tm_mon = 0; tm.tm_mday = 1; + tm.tm_isdst = -1; return mktime (&tm); } @@ -248,6 +250,7 @@ time_year_end (time_t t) tm.tm_mon = 0; tm.tm_mday = 1; tm.tm_year++; + tm.tm_isdst = -1; return mktime (&tm); } @@ -262,6 +265,7 @@ time_month_begin (time_t t) tm.tm_min = 0; tm.tm_sec = 0; tm.tm_mday = 1; + tm.tm_isdst = -1; return mktime (&tm); } @@ -277,6 +281,7 @@ time_month_end (time_t t) tm.tm_sec = 0; tm.tm_mday = 1; tm.tm_mon++; + tm.tm_isdst = -1; return mktime (&tm); } |