From 3b37e53a5c02fc0aad5fc9e479adea173b40acd6 Mon Sep 17 00:00:00 2001 From: James Booth Date: Mon, 31 Dec 2012 15:29:44 +0000 Subject: [PATCH] Fixed new years eve bug with chat history --- src/chat_log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chat_log.c b/src/chat_log.c index d8b2a6d3..2faae676 100644 --- a/src/chat_log.c +++ b/src/chat_log.c @@ -126,7 +126,7 @@ chat_log_get_previous(const gchar * const login, const gchar * const recipient, g_date_time_get_second(session_started)); // get data from all logs from the day the session was started to today - while (g_date_time_get_day_of_year(log_date) <= g_date_time_get_day_of_year(now)) { + while (g_date_time_compare(log_date, now) != 1) { char *filename = _get_log_filename(recipient, login, log_date, FALSE); FILE *logp = fopen(filename, "r");