2014-09-19 15:22 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/common/hbdate.c
! fixed typo in hb_timeUTCOffset() - this code was used in POSIX
systems which do not support gmtime_r()/localtime_r() - many
thanks to Teo.
* src/debug/dbgentry.c
* src/debug/debugger.prg
* prepare the code to return error object when evaluated expression
fails as proposed by Teo. This functionality is not enabled yet.
I'm waiting for information about current public debugger API used
in 3-rd party projects before I decide to change it.
This commit is contained in:
@@ -934,7 +934,7 @@ long hb_timeUTCOffset( void ) /* in seconds */
|
||||
utc = mktime( gmtime_r( ¤t, &timeinfo ) );
|
||||
local = mktime( localtime_r( ¤t, &timeinfo ) );
|
||||
#else
|
||||
timeinfo = *gmtime( &local );
|
||||
timeinfo = *gmtime( ¤t );
|
||||
utc = mktime( &timeinfo );
|
||||
timeinfo = *localtime( ¤t );
|
||||
local = mktime( &timeinfo );
|
||||
|
||||
Reference in New Issue
Block a user