06.04.2014, 23:15
I set GMT 4 and hour became 27. Maybe it's bug. I fixed it so. Sorry for my bad english.
Код:
if(minute > 59) { minute = 0; hour ++; } if(hour > 23) { hour -= 24; day ++; if(day > MonthTimes[month][IsLeapYear(year)]) { day = 1; month ++; if(month > 12) { month = 1; year ++; } } }