]> Pileus Git - aweather/commitdiff
Set timezone to UTC
authorAndy Spencer <andy753421@gmail.com>
Sat, 7 Jan 2012 23:14:09 +0000 (23:14 +0000)
committerAndy Spencer <andy753421@gmail.com>
Sat, 7 Jan 2012 23:14:09 +0000 (23:14 +0000)
Almost all meteorological data is in in Coordinated Universal Time.
For example, timestamps in files/filenames, etc.

This fixes a timezone bug downloading Level-II radar files.

src/main.c

index 7ae60d8cd601595aba29d54eafc59ed29a22ed8e..c3d046943e20af5f52b4d20e7395d63e29767283 100644 (file)
@@ -139,6 +139,9 @@ int main(int argc, char *argv[])
                {NULL}
        };
 
+       /* All times in UTC */
+       g_setenv("TZ", "UTC", TRUE);
+
        /* Init */
        GError *error = NULL;
        g_thread_init(NULL);