Fixed timezone issue
Timezone offset was not working.
This commit is contained in:
parent
c860dbbba9
commit
8a1d6753bc
2 changed files with 3 additions and 3 deletions
|
@ -30,7 +30,7 @@ LOCAL_MODULE := droid48
|
|||
|
||||
LOCAL_LDLIBS := -L${SYSROOT}/usr/lib -llog
|
||||
|
||||
LOCAL_SRC_FILES := config.h actions.c binio.c debugger.c device.c \
|
||||
LOCAL_SRC_FILES := actions.c binio.c debugger.c device.c \
|
||||
disasm.c emulate.c init.c \
|
||||
lcd.c main.c memory.c options.c register.c \
|
||||
resources.c romio.c rpl.c serial.c timer.c x48.c
|
||||
|
|
|
@ -210,9 +210,9 @@ set_accesstime()
|
|||
(void)time(&gmt);
|
||||
ltm = localtime(&gmt);
|
||||
#ifdef SYSV_TIME
|
||||
if( ltm->tm_isdst )
|
||||
systime_offset += timezone;
|
||||
if( ltm->tm_isdst > 0 )
|
||||
systime_offset = -3600;
|
||||
//systime_offset += timezone;
|
||||
#else
|
||||
systime_offset = -ltm->tm_gmtoff;
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue