Open massaccim opened 9 years ago
if tm.Day is zero when calling makTime(tm) the result is wrong. line: seconds+= (tm.Day-1) * SECS_PER_DAY;
should be:
if (tm.Day > 0) seconds+= (tm.Day-1) * SECS_PER_DAY;
if tm.Day is zero when calling makTime(tm) the result is wrong. line: seconds+= (tm.Day-1) * SECS_PER_DAY;
should be:
if (tm.Day > 0) seconds+= (tm.Day-1) * SECS_PER_DAY;