From 73c9321361b38e75d442780280175d5298893c8f Mon Sep 17 00:00:00 2001 From: Diogo Sousa Date: Sun, 30 Jun 2013 15:00:38 +0100 Subject: Fixed server-time timestamps issue regarding local time. --- src/common/proto-irc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/common/proto-irc.c b/src/common/proto-irc.c index 25dfc2a8..7742c064 100644 --- a/src/common/proto-irc.c +++ b/src/common/proto-irc.c @@ -1368,6 +1368,9 @@ handle_message_tag_time (const char *time, message_tags_data *tags_data) tags_data->timestamp = 0; return; } + + /* get rid of the local time (mktime() receives a local calendar time) */ + tags_data->timestamp -= timezone; } else { -- cgit 1.4.1