2015-06-24 21:09 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)

* contrib/hbmzip/mzip.c
  * src/rtl/filesys.c
    ! initialize tm_isdst member of tm structure with -1 to force correct
      local time to UTC conversion in mktime()
This commit is contained in:
Przemysław Czerpak
2015-06-24 21:09:58 +02:00
parent f566a9282c
commit cc1c87e756
3 changed files with 8 additions and 1 deletions

View File

@@ -10,6 +10,12 @@
* Change, ! Fix, % Optimization, + Addition, - Removal, ; Comment
*/
2015-06-24 21:09 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* contrib/hbmzip/mzip.c
* src/rtl/filesys.c
! initialize tm_isdst member of tm structure with -1 to force correct
local time to UTC conversion in mktime()
2015-06-24 20:32 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/pp/ppcore.c
! fixed directory include precedence in #included files which

View File

@@ -1389,6 +1389,7 @@ static int hb_unzipExtractCurrentFile( unzFile hUnzip, const char * szFileName,
st.tm_mday = ufi.tmu_date.tm_mday;
st.tm_mon = ufi.tmu_date.tm_mon;
st.tm_year = ufi.tmu_date.tm_year - 1900;
st.tm_isdst = -1;
utim.actime = utim.modtime = mktime( &st );
( void ) utime( szNameOS, &utim );

View File

@@ -1693,7 +1693,7 @@ HB_BOOL hb_fsSetFileTime( const char * pszFileName, long lJulian, long lMillisec
new_value.tm_min = iMinute;
new_value.tm_sec = iSecond;
}
new_value.tm_isdst = 0;
new_value.tm_isdst = -1;
# if defined( HB_OS_LINUX ) && ! defined( __WATCOMC__ )
{