diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 442568ccb7..01ff12dec6 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -17,6 +17,10 @@ past entries belonging to author(s): Viktor Szakats. */ +2009-07-30 06:48 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) + * source/common/hbdate.c + ! Fixed typos in last modif. + 2009-07-30 06:35 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) * source/common/hbdate.c ! Fixed for some systems where tm->tm_gmtoff isn't available. diff --git a/harbour/source/common/hbdate.c b/harbour/source/common/hbdate.c index 5528158ed3..7696674d36 100644 --- a/harbour/source/common/hbdate.c +++ b/harbour/source/common/hbdate.c @@ -925,7 +925,7 @@ long hb_timeUTCOffset( void ) /* in seconds */ # endif local = mktime( timeinfo ); - return utc - local - ( timeinfo->tm_isdst ? 1 : 0 ); + return difftime( local, utc ) + ( timeinfo->tm_isdst ? 3600 : 0 ); } #endif }