diff options
author | Constantin Michael <constantin@codesynthesis.com> | 2011-04-22 17:32:12 +0200 |
---|---|---|
committer | Constantin Michael <constantin@codesynthesis.com> | 2011-04-22 18:52:24 +0200 |
commit | cdd4151de0a2a3f0f534ae3a74f35098d3d4916e (patch) | |
tree | 6ca4fa37bef107a91a3ac5e42f15594908104f11 /qt/sqlite/date-time/driver.cxx | |
parent | a14577f5ffba3db178387940b6cfc24869d02248 (diff) |
Remove time zone handling tests
Diffstat (limited to 'qt/sqlite/date-time/driver.cxx')
-rw-r--r-- | qt/sqlite/date-time/driver.cxx | 33 |
1 files changed, 0 insertions, 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<object> ol3 (db->load<object> (o3.id)); - auto_ptr<object> ol4 (db->load<object> (o4.id)); - auto_ptr<object> ol5 (db->load<object> (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. // |