glib/tests/gdatetime: use UTC time in test_GDateTime_diff()
authorDan Winship <danw@gnome.org>
Sun, 2 Jun 2013 22:59:09 +0000 (19:59 -0300)
committerDan Winship <danw@gnome.org>
Sat, 17 Aug 2013 14:25:26 +0000 (10:25 -0400)
commit5415537edb383fedfc5d4edc17dcf2bd2b8a38af
treee0c40f8ea4b45736fe39afe7b24e40e63f4b7760
parent74a5e920767eb350979595c3bc51f126158608d9
glib/tests/gdatetime: use UTC time in test_GDateTime_diff()

test_GDateTime_diff() checks that the span from 2009-01-01 to
2010-01-01 is exactly 365 * G_TIME_SPAN_DAY, but it does this using
local time, and so fails if you are in a timezone that is in the
southern hemisphere which only did DST during one of 2008-2009 and
2009-2010 (in which case the year will end up being one hour too long
or too short).

Switch the diff tests to use UTC time instead; there are plenty of
other local time tests already.

https://bugzilla.gnome.org/show_bug.cgi?id=701529
glib/tests/gdatetime.c