tests/gdatetime: fix new_from_unix test
authorDan Winship <danw@gnome.org>
Wed, 4 Apr 2012 18:38:18 +0000 (14:38 -0400)
committerDan Winship <danw@gnome.org>
Wed, 4 Apr 2012 18:49:15 +0000 (14:49 -0400)
commit51609ec943f9d51a8c8863badd79d2a9293ae4c7
treebdff32cf240ecafa34eacbda63752ff63ef4869d
parentf0a3241eab5ba61ebe4aa6fbe7f1cb0ec696d8c9
tests/gdatetime: fix new_from_unix test

When creating a struct tm for "1990-01-01T00:00:00" to pass to
mktime(), we have to set tm_isdst to -1; leaving it set to 0 will
result in the wrong time being generated when run in a timezone where
January 1 would normally be tm_isdst==1 (ie, in southern hemisphere
DST-observing countries, like Australia).

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