1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-03 04:22:47 -05:00

Times and dates in the event log, fixing ltime() in the process.

[originally from svn r5250]
This commit is contained in:
Owen Dunn
2005-02-05 00:29:20 +00:00
parent 061cfb7ef3
commit 45700b21e8
2 changed files with 15 additions and 4 deletions

View File

@ -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 */