From: Karl Heuer Date: Sun, 14 Jul 1996 00:03:45 +0000 (+0000) Subject: (sys_gmtime): Don't assume year < 2000. X-Git-Tag: emacs-19.34~196 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=019226d02db9bd0c462340924d9e2fc6d004cf6a;p=emacs.git (sys_gmtime): Don't assume year < 2000. --- diff --git a/src/vmstime.c b/src/vmstime.c index 4c4f2c0ae68..4eec5d0a4de 100644 --- a/src/vmstime.c +++ b/src/vmstime.c @@ -357,7 +357,7 @@ struct tm *sys_gmtime(time_t *clock) gmt.tm_hour = tmp_vectime.hour; gmt.tm_mday = tmp_vectime.day; gmt.tm_mon = tmp_vectime.month - 1; - gmt.tm_year = tmp_vectime.year % 100; + gmt.tm_year = tmp_vectime.year - 1900; tmp_operation = LIB$K_DAY_OF_WEEK; status = LIB$CVT_FROM_INTERNAL_TIME(&tmp_operation,