// headers
// ----------------------------------------------------------------------------
-#include "wx/wxprec.h"
+#include "testprec.h"
#ifdef __BORLANDC__
#pragma hdrstop
#include "wx/datetime.h"
-#include "wx/cppunit.h"
-
// ----------------------------------------------------------------------------
// broken down date representation used for testing
// ----------------------------------------------------------------------------
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 );
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