From cdd4151de0a2a3f0f534ae3a74f35098d3d4916e Mon Sep 17 00:00:00 2001 From: Constantin Michael Date: Fri, 22 Apr 2011 17:32:12 +0200 Subject: Remove time zone handling tests --- qt/sqlite/date-time/driver.cxx | 33 --------------------------------- 1 file changed, 33 deletions(-) diff --git a/qt/sqlite/date-time/driver.cxx b/qt/sqlite/date-time/driver.cxx index 277c29b..48ab63d 100644 --- a/qt/sqlite/date-time/driver.cxx +++ b/qt/sqlite/date-time/driver.cxx @@ -91,39 +91,6 @@ main (int argc, char* argv[]) assert (*ol2 == o2); } - // Test different time zones are handled correctly by - // QDateTime traits UNIX time implementation. - // - object o3, o4, o5; - { - // o3 is set to ct local time. o4 is set to ct UTC. o5 - // is set to o3's equivalent UTC time. - // - o3.unix_time = ct_no_ms; - - o4.unix_time = ct_no_ms; - o4.unix_time.setTimeSpec (Qt::UTC); - - o5.unix_time = ct_no_ms.toTimeSpec (Qt::UTC); - - transaction t (db->begin ()); - db->persist (o3); - db->persist (o4); - db->persist (o5); - t.commit (); - } - - { - transaction t (db->begin ()); - auto_ptr ol3 (db->load (o3.id)); - auto_ptr ol4 (db->load (o4.id)); - auto_ptr ol5 (db->load (o5.id)); - t.commit (); - - assert (ol3->unix_time != ol4->unix_time); - assert (ol3->unix_time == ol5->unix_time); - } - // Test out of range values for QDateTime traits UNIX time // implementation. // -- cgit v1.1