about summary refs log tree commit diff stats
path: root/src/log.c
diff options
context:
space:
mode:
authorDmitry Podgorny <pasis.ua@gmail.com>2013-08-24 00:37:00 +0300
committerDmitry Podgorny <pasis.ua@gmail.com>2013-08-24 00:37:00 +0300
commit1ef361684f8c6b892df9a364265c7ffa7d57adbd (patch)
tree2075d3d4e3ceb6e77e6cdc6a5f278b88b9d12244 /src/log.c
parentc94495bc312e7bafecc12540c2968dc1c9b6f161 (diff)
downloadprofani-tty-1ef361684f8c6b892df9a364265c7ffa7d57adbd.tar.gz
tz should be cached in static variable
Diffstat (limited to 'src/log.c')
-rw-r--r--src/log.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/log.c b/src/log.c
index f6ce7b5b..14d801a9 100644
--- a/src/log.c
+++ b/src/log.c
@@ -308,8 +308,6 @@ GSList *
 chat_log_get_previous(const gchar * const login, const gchar * const recipient,
     GSList *history)
 {
-    GTimeZone *tz = g_time_zone_new_local();
-
     GDateTime *now = g_date_time_new_now_local();
     GDateTime *log_date = g_date_time_new(tz,
         g_date_time_get_year(session_started),
@@ -348,8 +346,6 @@ chat_log_get_previous(const gchar * const login, const gchar * const recipient,
         log_date = g_date_time_ref(next);
     }
 
-    g_time_zone_unref(tz);
-
     return history;
 }