1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-10-06 20:03:46 -04:00

tz should be cached in static variable

This commit is contained in:
Dmitry Podgorny 2013-08-24 00:37:00 +03:00
parent c94495bc31
commit 1ef361684f

View File

@ -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;
}