define _timezone for VisualAge
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5060 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -92,7 +92,7 @@
|
|||||||
#endif // broken strptime()
|
#endif // broken strptime()
|
||||||
|
|
||||||
#ifndef WX_TIMEZONE
|
#ifndef WX_TIMEZONE
|
||||||
#ifdef __MINGW32__
|
#if defined(__MINGW32__) || defined(__VISAGECPP__)
|
||||||
#define WX_TIMEZONE _timezone
|
#define WX_TIMEZONE _timezone
|
||||||
#else // unknown platform - try timezone
|
#else // unknown platform - try timezone
|
||||||
#define WX_TIMEZONE timezone
|
#define WX_TIMEZONE timezone
|
||||||
@@ -926,7 +926,7 @@ wxDateTime wxDateTime::GetEndDST(int year, Country country)
|
|||||||
|
|
||||||
if ( IsWestEuropeanCountry(country) || (country == Russia) )
|
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) )
|
if ( !dt.SetToLastWeekDay(Sun, Oct, year) )
|
||||||
{
|
{
|
||||||
// weirder and weirder...
|
// weirder and weirder...
|
||||||
@@ -957,7 +957,7 @@ wxDateTime wxDateTime::GetEndDST(int year, Country country)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
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) )
|
if ( !dt.SetToLastWeekDay(Sun, Oct, year) )
|
||||||
{
|
{
|
||||||
// weirder and weirder...
|
// weirder and weirder...
|
||||||
@@ -2416,7 +2416,7 @@ const wxChar *wxDateTime::ParseFormat(const wxChar *date,
|
|||||||
haveDay = TRUE;
|
haveDay = TRUE;
|
||||||
mday = (wxDateTime_t)num;
|
mday = (wxDateTime_t)num;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case _T('H'): // hour in 24h format (00-23)
|
case _T('H'): // hour in 24h format (00-23)
|
||||||
if ( !GetNumericToken(input, &num) || (num > 23) )
|
if ( !GetNumericToken(input, &num) || (num > 23) )
|
||||||
{
|
{
|
||||||
@@ -2772,7 +2772,7 @@ const wxChar *wxDateTime::ParseFormat(const wxChar *date,
|
|||||||
// set the time
|
// set the time
|
||||||
if ( haveHour )
|
if ( haveHour )
|
||||||
{
|
{
|
||||||
tm.hour = hour;
|
tm.hour = hour;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( haveMin )
|
if ( haveMin )
|
||||||
|
Reference in New Issue
Block a user