[tracker/tracker-0.16] tests: Ensure the "no offset" time test has truly no offsets
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.16] tests: Ensure the "no offset" time test has truly no offsets
- Date: Fri, 22 Nov 2013 23:06:34 +0000 (UTC)
commit fd30fa8e1c398674139ea5fd688d7b45ab4b0bc3
Author: Carlos Garnacho <carlos lanedo com>
Date: Fri Nov 22 15:09:53 2013 +0100
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.
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 f624d80..d1b34b2 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]