2009-07-30 06:48 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)

* source/common/hbdate.c
    ! Fixed typos in last modif.
This commit is contained in:
Viktor Szakats
2009-07-30 04:49:12 +00:00
parent ecb56859df
commit 072c6896c4
2 changed files with 5 additions and 1 deletions

View File

@@ -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.

View File

@@ -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
}