From: Andy Spencer Date: Sat, 7 Jan 2012 23:14:09 +0000 (+0000) Subject: Set timezone to UTC X-Git-Tag: v0.7~21 X-Git-Url: http://pileus.org/git/?p=aweather;a=commitdiff_plain;h=1385401b0455538e23cbb5b31b92fc5862711c8e Set timezone to UTC 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. --- diff --git a/src/main.c b/src/main.c index 7ae60d8..c3d0469 100644 --- a/src/main.c +++ b/src/main.c @@ -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);