Commit graph

8 commits

Author SHA1 Message Date
Rui Matos
11d94b271b datetime: Restore TZ envvar as it was
tz_info_from_location() was changing the value of TZ, but not
restoring it when it was done checking data for it, and setting
the GMT timezone instead.

This meant that UTC time was displayed when the minute changed on
the wall clock.

https://bugzilla.gnome.org/show_bug.cgi?id=649568
2011-07-14 11:59:17 +01:00
Bastien Nocera
07e51912e6 datetime: Unset TZ after we're done
Just in case we call localtime() for something else...
2011-04-15 04:15:30 +01:00
Bastien Nocera
3e8afd5750 datetime: Add hacks to support all the TZs
On a recent Linux system, so all the existing timezones
(apart from factory and posixrules) are attached to a location,
or a GMT offset.

https://bugzilla.gnome.org/show_bug.cgi?id=644782
2011-04-15 02:40:21 +01:00
Bastien Nocera
8d15af48c8 datetime: Move backward TZ DB to tz.[ch]
So we can add hacks in one location
2011-04-15 02:40:20 +01:00
Kjartan Maraas
e50563f67c datetime: Fix GCC 4.6 warnings
https://bugzilla.gnome.org/show_bug.cgi?id=642810
2011-03-02 18:03:35 +00:00
Bastien Nocera
1bac073929 datetime: Fix compile-time warning 2010-09-20 18:21:03 +01:00
Thomas Wood
20a5421543 datetime: fix various memory leaks
- Add a function to free the timezone database
- Use setenv rather than putenv
- Add various missing free() calls
2010-07-16 13:53:34 +01:00
Thomas Wood
26ae0134cf datetime: add detection of location from map clicks 2010-06-28 10:58:43 +01:00