aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1996-07-14 00:03:45 +0000
committerKarl Heuer1996-07-14 00:03:45 +0000
commit019226d02db9bd0c462340924d9e2fc6d004cf6a (patch)
tree22443ccaa47bd6b4569f5ce4c487004ec51831ab /src
parent29a0dc6ce18c15adf65f7cb51e54321e79a9d0a7 (diff)
downloademacs-019226d02db9bd0c462340924d9e2fc6d004cf6a.tar.gz
emacs-019226d02db9bd0c462340924d9e2fc6d004cf6a.zip
(sys_gmtime): Don't assume year < 2000.
Diffstat (limited to 'src')
-rw-r--r--src/vmstime.c2
1 files changed, 1 insertions, 1 deletions
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)
357 gmt.tm_hour = tmp_vectime.hour; 357 gmt.tm_hour = tmp_vectime.hour;
358 gmt.tm_mday = tmp_vectime.day; 358 gmt.tm_mday = tmp_vectime.day;
359 gmt.tm_mon = tmp_vectime.month - 1; 359 gmt.tm_mon = tmp_vectime.month - 1;
360 gmt.tm_year = tmp_vectime.year % 100; 360 gmt.tm_year = tmp_vectime.year - 1900;
361 361
362 tmp_operation = LIB$K_DAY_OF_WEEK; 362 tmp_operation = LIB$K_DAY_OF_WEEK;
363 status = LIB$CVT_FROM_INTERNAL_TIME(&tmp_operation, 363 status = LIB$CVT_FROM_INTERNAL_TIME(&tmp_operation,