]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/datetime/datetimetest.cpp
another test for DST bug
[wxWidgets.git] / tests / datetime / datetimetest.cpp
index f4adb0d26b079a781dd864a786fc822bb9553205..44924b868d640a6cea7cf471ea29433eb157d0f4 100644 (file)
@@ -757,6 +757,9 @@ void DateTimeTestCase::TestDSTBug()
     CPPUNIT_ASSERT_EQUAL(0, (int)dt.GetSecond());
     CPPUNIT_ASSERT_EQUAL(0, (int)dt.GetMillisecond());
 
+    dt.Set(1, 0, 0, 0);
+    CPPUNIT_ASSERT_EQUAL(1, (int)dt.GetHour());
+
     /////////////////////////
     // Test Today()
 #ifdef CHANGE_SYSTEM_DATE