]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Use new time zone list
authorChristopher Wong <christwo@axis.com>
Thu, 28 Feb 2019 13:22:42 +0000 (14:22 +0100)
committerChristopher Wong <christwo@axis.com>
Thu, 28 Feb 2019 13:58:43 +0000 (14:58 +0100)
When systemd retrieve the time zone it read what is in the file
/usr/share/zoneinfo/zone.tab provided by the Time Zone Database.
According to the comments in zone.tab its content is for backward-
compatibility aid for older programs. New programs should use
zone1970.tab. This patch replaces zone.tab with zone1970.tab.

src/basic/time-util.c

index 25a5c116e89827bf2e2b62cbb4ad6ba14f6359d9..daf952baa117906b93ddbec87ebe3bb02f6ad729 100644 (file)
@@ -1214,7 +1214,7 @@ int get_timezones(char ***ret) {
         n_allocated = 2;
         n_zones = 1;
 
-        f = fopen("/usr/share/zoneinfo/zone.tab", "re");
+        f = fopen("/usr/share/zoneinfo/zone1970.tab", "re");
         if (f) {
                 for (;;) {
                         _cleanup_free_ char *line = NULL;