--- panel-plugin/weather-parsers.c.orig 2017-02-16 21:58:03.000000000 +0300 +++ panel-plugin/weather-parsers.c 2017-02-17 14:35:08.825395000 +0300 @@ -54,14 +54,16 @@ my_timegm(struct tm *tm) { time_t ret; - const char *tz; + char *tz; - tz = g_getenv("TZ"); + tz = g_strdup(g_getenv("TZ")); g_setenv("TZ", "", 1); tzset(); ret = mktime(tm); - if (tz) + if (tz) { g_setenv("TZ", tz, 1); + g_free(tz); + } else g_unsetenv("TZ"); tzset();