Real fix for the timer issue

This commit is contained in:
Denis Bernard 2011-06-28 12:42:30 +02:00
parent 8a1d6753bc
commit ce38fb6c90

View file

@ -210,9 +210,9 @@ set_accesstime()
(void)time(&gmt); (void)time(&gmt);
ltm = localtime(&gmt); ltm = localtime(&gmt);
#ifdef SYSV_TIME #ifdef SYSV_TIME
systime_offset += timezone; systime_offset = timezone;
if( ltm->tm_isdst > 0 ) if( ltm->tm_isdst )
systime_offset = -3600; systime_offset -= 3600;
#else #else
systime_offset = -ltm->tm_gmtoff; systime_offset = -ltm->tm_gmtoff;
#endif #endif