aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/timeutil.c
diff options
context:
space:
mode:
authorMike McEwan <mike@lotusland.demon.co.uk>1999-06-23 01:50:04 +0800
committerArturo Espinosa <unammx@src.gnome.org>1999-06-23 01:50:04 +0800
commit272857c73c1d7b92551d0ce12de43733ba10d50a (patch)
treed9a3583006a93b1fb22bf0d1034ce04d5297628d /calendar/timeutil.c
parent7f81757d52326126f88e898241dc40c1668f5164 (diff)
downloadgsoc2013-evolution-272857c73c1d7b92551d0ce12de43733ba10d50a.tar
gsoc2013-evolution-272857c73c1d7b92551d0ce12de43733ba10d50a.tar.gz
gsoc2013-evolution-272857c73c1d7b92551d0ce12de43733ba10d50a.tar.bz2
gsoc2013-evolution-272857c73c1d7b92551d0ce12de43733ba10d50a.tar.lz
gsoc2013-evolution-272857c73c1d7b92551d0ce12de43733ba10d50a.tar.xz
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
Diffstat (limited to 'calendar/timeutil.c')
-rw-r--r--calendar/timeutil.c5
1 files changed, 5 insertions, 0 deletions
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);
}