Fixed wrong date display (bug #1650124), tm_mon is in the range 0-11

svn-id: r25328
This commit is contained in:
Sven Hesse 2007-02-01 20:19:21 +00:00
parent 0a18259d78
commit f1a4f57a53

View File

@ -284,7 +284,7 @@ void Inter::renewTimeInVars(void) {
t = localtime(&now);
WRITE_VAR(5, 1900 + t->tm_year);
WRITE_VAR(6, t->tm_mon);
WRITE_VAR(6, t->tm_mon + 1);
WRITE_VAR(7, 0);
WRITE_VAR(8, t->tm_mday);
WRITE_VAR(9, t->tm_hour);