diff options
Diffstat (limited to 'mbbsd/calendar.c')
-rw-r--r-- | mbbsd/calendar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/calendar.c b/mbbsd/calendar.c index 7928f8a2..372dcc9a 100644 --- a/mbbsd/calendar.c +++ b/mbbsd/calendar.c @@ -268,7 +268,7 @@ calendar() event_t *head = NULL, *e = NULL; /* initialize date */ - memcpy(&snow, localtime(&now), sizeof(struct tm)); + memcpy(&snow, localtime4(&now), sizeof(struct tm)); today = Days(snow.tm_year + 1900, snow.tm_mon + 1, snow.tm_mday); y = snow.tm_year + 1900, m = snow.tm_mon + 1; |