From: David Webster Date: Tue, 21 Dec 1999 23:44:08 +0000 (+0000) Subject: define _timezone for VisualAge X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/5f287370dd4e5e89d16076958e64bd3870e3a392 define _timezone for VisualAge git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5060 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/datetime.cpp b/src/common/datetime.cpp index 74fcf22494..47607ede47 100644 --- a/src/common/datetime.cpp +++ b/src/common/datetime.cpp @@ -92,7 +92,7 @@ #endif // broken strptime() #ifndef WX_TIMEZONE - #ifdef __MINGW32__ + #if defined(__MINGW32__) || defined(__VISAGECPP__) #define WX_TIMEZONE _timezone #else // unknown platform - try timezone #define WX_TIMEZONE timezone @@ -926,7 +926,7 @@ wxDateTime wxDateTime::GetEndDST(int year, Country country) if ( IsWestEuropeanCountry(country) || (country == Russia) ) { - // DST ends at 1 a.m. GMT on the last Sunday of October + // DST ends at 1 a.m. GMT on the last Sunday of October if ( !dt.SetToLastWeekDay(Sun, Oct, year) ) { // weirder and weirder... @@ -957,7 +957,7 @@ wxDateTime wxDateTime::GetEndDST(int year, Country country) break; default: - // DST ends at 2 a.m. on the last Sunday of October + // DST ends at 2 a.m. on the last Sunday of October if ( !dt.SetToLastWeekDay(Sun, Oct, year) ) { // weirder and weirder... @@ -2416,7 +2416,7 @@ const wxChar *wxDateTime::ParseFormat(const wxChar *date, haveDay = TRUE; mday = (wxDateTime_t)num; break; - + case _T('H'): // hour in 24h format (00-23) if ( !GetNumericToken(input, &num) || (num > 23) ) { @@ -2772,7 +2772,7 @@ const wxChar *wxDateTime::ParseFormat(const wxChar *date, // set the time if ( haveHour ) { - tm.hour = hour; + tm.hour = hour; } if ( haveMin )