git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30407
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
continue;
wxDateTime dt = d.DT();
continue;
wxDateTime dt = d.DT();
+ //RN: Translate according to test's time zone
+ //2nd param is to ignore DST - it's already factored
+ //into Vadim's tests
+ dt.MakeTimezone(wxDateTime::WEST, true);
long ticks = (dt.GetValue() / 1000).ToLong();
CPPUNIT_ASSERT( ticks == d.ticks );
long ticks = (dt.GetValue() / 1000).ToLong();
CPPUNIT_ASSERT( ticks == d.ticks );
CPPUNIT_ASSERT( parseTestDates[n].good );
wxDateTime dtReal = parseTestDates[n].date.DT();
CPPUNIT_ASSERT( parseTestDates[n].good );
wxDateTime dtReal = parseTestDates[n].date.DT();
+ //RN: We need this because the tests are based on
+ //a non-GMT time zone
+ dtReal.MakeTimezone(wxDateTime::WEST, true);
CPPUNIT_ASSERT( dt == dtReal );
}
else // failed to parse
CPPUNIT_ASSERT( dt == dtReal );
}
else // failed to parse