aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/timeutil.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/timeutil.c')
-rw-r--r--calendar/timeutil.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/calendar/timeutil.c b/calendar/timeutil.c
index 03d9465daa..670a29609b 100644
--- a/calendar/timeutil.c
+++ b/calendar/timeutil.c
@@ -221,7 +221,7 @@ time_year_begin (int year)
tm.tm_hour = 0;
tm.tm_min = 0;
tm.tm_sec = 0;
- tm.tm_year = year;
+ tm.tm_year = year - 1900;
tm.tm_mon = 0;
tm.tm_mday = 1;
tm.tm_isdst = -1;
@@ -238,7 +238,7 @@ time_year_end (int year)
tm.tm_hour = 23;
tm.tm_min = 59;
tm.tm_sec = 59;
- tm.tm_year = year;
+ tm.tm_year = year - 1900;
tm.tm_mon = 11;
tm.tm_mday = 31;
tm.tm_isdst = -1;