X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=mac%2Fmacmisc.c;h=2d976e7dda9a15e831a93c19139399bf487f0a0c;hb=49d2cf19accb059b3b68d1fc2b78e606a578c3e8;hp=128b3c403720720dfbf47b58cd18030c1321315a;hpb=09dae8d5dc1f6ae61c033194d719b3d2069eee4a;p=PuTTY.git diff --git a/mac/macmisc.c b/mac/macmisc.c index 128b3c40..2d976e7d 100644 --- a/mac/macmisc.c +++ b/mac/macmisc.c @@ -183,8 +183,8 @@ struct tm ltime(void) tm.tm_min=d.minute; tm.tm_hour=d.hour; tm.tm_mday=d.day; - tm.tm_mon=d.month; - tm.tm_year=d.year; + tm.tm_mon=d.month-1; + tm.tm_year=d.year-1900; tm.tm_wday=d.dayOfWeek; tm.tm_yday=1; /* GetTime doesn't tell us */ tm.tm_isdst=0; /* Have to do DST ourselves */