diff options
-rw-r--r-- | libempathy/empathy-time.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libempathy/empathy-time.c b/libempathy/empathy-time.c index 19397e7a9..a39636dde 100644 --- a/libempathy/empathy-time.c +++ b/libempathy/empathy-time.c @@ -40,18 +40,18 @@ empathy_time_get_current (void) time_t empathy_time_get_local_time (struct tm *tm) { - const gchar *timezone; + const gchar *tz; time_t t; - timezone = g_getenv ("TZ"); + tz = g_getenv ("TZ"); g_setenv ("TZ", "", TRUE); tzset (); t = mktime (tm); - if (timezone) { - g_setenv ("TZ", timezone, TRUE); + if (tz) { + g_setenv ("TZ", tz, TRUE); } else { g_unsetenv ("TZ"); } |