# | Line 48 | Line 48 | const uint32 TIME_OFFSET = 0x7c25b080; / | |
---|---|---|
48 | ||
49 | uint32 TimerDateTime(void) | |
50 | { | |
51 | < | time_t uct_now = time(NULL); |
51 | > | time_t utc_now = time(NULL); |
52 | long tz = timezone; | |
53 | < | time_t local_now = uct_now - tz; |
53 | > | time_t local_now = utc_now - tz; |
54 | if (daylight) | |
55 | local_now += 3600; | |
56 | return (uint32)local_now + TIME_OFFSET; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |