X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/e479b152ca3b0861ba5fd93abec89619e1d37061..0aafb388296848047c641f4e382d3a7643684ad0:/mac/macmisc.c diff --git a/mac/macmisc.c b/mac/macmisc.c index 72a360a1..2d976e7d 100644 --- a/mac/macmisc.c +++ b/mac/macmisc.c @@ -38,6 +38,7 @@ #include "putty.h" #include "mac.h" +#include "ssh.h" #if TARGET_API_MAC_CARBON /* @@ -182,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 */