After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 701529 - glib/tests/gdatetime: use UTC time in test_GDateTime_diff()
glib/tests/gdatetime: use UTC time in test_GDateTime_diff()
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2013-06-03 14:05 UTC by Dan Winship
Modified: 2013-08-17 14:25 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
glib/tests/gdatetime: use UTC time in test_GDateTime_diff() (1.41 KB, patch)
2013-06-03 14:05 UTC, Dan Winship
committed Details | Review

Description Dan Winship 2013-06-03 14:05:31 UTC
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.
Comment 1 Dan Winship 2013-06-03 14:05:33 UTC
Created attachment 245924 [details] [review]
glib/tests/gdatetime: use UTC time in test_GDateTime_diff()
Comment 2 Dan Winship 2013-08-17 14:25:51 UTC
Attachment 245924 [details] pushed as 5415537 - glib/tests/gdatetime: use UTC time in test_GDateTime_diff()