diff options
author | Carlos Garnacho <carlos@lanedo.com> | 2013-11-22 15:09:53 +0100 |
---|---|---|
committer | Carlos Garnacho <carlos@lanedo.com> | 2013-11-22 15:09:53 +0100 |
commit | 0cc660b34fcf9a10f9974bda6f41697dafab71fe (patch) | |
tree | 64162cf2b0de8d56c2292526a30a40798e322664 /tests/libtracker-common | |
parent | 7e9e1027f941ff7fa3d341e73a4d29ea0b59fc11 (diff) | |
download | tracker-0cc660b34fcf9a10f9974bda6f41697dafab71fe.tar.gz |
tests: Ensure the "no offset" time test has truly no offsets
If no UTC relation is set to the date, the computer timezone is
picked, which may obviously differ from UTC.
Diffstat (limited to 'tests/libtracker-common')
-rw-r--r-- | tests/libtracker-common/tracker-date-time-test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/libtracker-common/tracker-date-time-test.c b/tests/libtracker-common/tracker-date-time-test.c index f624d800a..d1b34b299 100644 --- a/tests/libtracker-common/tracker-date-time-test.c +++ b/tests/libtracker-common/tracker-date-time-test.c @@ -164,7 +164,7 @@ test_date_time_from_string () g_assert_cmpint (tracker_date_time_get_offset (&value), ==, -10800); /* No offset */ - tracker_date_time_set_from_string (&value, "2011-10-28T17:43:00", &error); + tracker_date_time_set_from_string (&value, "2011-10-28T17:43:00Z", &error); g_assert (!error); g_assert_cmpint (tracker_date_time_get_time (&value), ==, 1319823780); g_assert_cmpint (tracker_date_time_get_offset (&value), ==, 0); |