mirror of
https://github.com/shagr4th/droid48
synced 2024-11-16 20:12:34 +01:00
Real fix for the timer issue
This commit is contained in:
parent
8a1d6753bc
commit
ce38fb6c90
1 changed files with 3 additions and 3 deletions
|
@ -210,9 +210,9 @@ set_accesstime()
|
|||
(void)time(&gmt);
|
||||
ltm = localtime(&gmt);
|
||||
#ifdef SYSV_TIME
|
||||
systime_offset += timezone;
|
||||
if( ltm->tm_isdst > 0 )
|
||||
systime_offset = -3600;
|
||||
systime_offset = timezone;
|
||||
if( ltm->tm_isdst )
|
||||
systime_offset -= 3600;
|
||||
#else
|
||||
systime_offset = -ltm->tm_gmtoff;
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue