callers already compensate for year-from-1900 and mont-start-from-0
This commit is contained in:
parent
ce187e614a
commit
4a660e3827
@ -361,9 +361,9 @@ time_t sgTimeGetGMT(int year, int month, int day, int hour, int min, int sec)
|
||||
{
|
||||
struct tm mt;
|
||||
|
||||
mt.tm_mon = month - 1;
|
||||
mt.tm_mon = month;
|
||||
mt.tm_mday = day;
|
||||
mt.tm_year = year - 1900;
|
||||
mt.tm_year = year;
|
||||
mt.tm_hour = hour;
|
||||
mt.tm_min = min;
|
||||
mt.tm_sec = sec;
|
||||
|
Loading…
Reference in New Issue
Block a user