/soc/2015/igor.gajowiak/chatlog: a0a2422a2c58: Fixed a timestamp...
Igor Gajowiak
igor.gajowiak at gmail.com
Sun Aug 16 12:15:47 EDT 2015
Changeset: a0a2422a2c586d8aa0cfebf845d761e8ef91389e
Author: Igor Gajowiak <igor.gajowiak at gmail.com>
Date: 2015-08-16 18:15 +0200
Branch: default
URL: https://hg.pidgin.im/soc/2015/igor.gajowiak/chatlog/rev/a0a2422a2c58
Description:
Fixed a timestamp truncation bug.
diffstat:
libpurple/plugins/log/logsqlite.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff --git a/libpurple/plugins/log/logsqlite.c b/libpurple/plugins/log/logsqlite.c
--- a/libpurple/plugins/log/logsqlite.c
+++ b/libpurple/plugins/log/logsqlite.c
@@ -1171,7 +1171,7 @@ guint64 truncate_to_days(guint64 timesta
{
time_t t = (time_t) timestamp;
- struct tm *time = gmtime(&t);
+ struct tm *time = localtime(&t);
time->tm_sec = 0;
time->tm_min = 0;
time->tm_hour = 0;
More information about the Commits
mailing list