[tracker] tests: Ensure the "no offset" time test has truly no offsets



commit 0cc660b34fcf9a10f9974bda6f41697dafab71fe
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]