From d99d951f7f2620ff99153a0857abdbeef3da2cd9 Mon Sep 17 00:00:00 2001 From: Diogo Sousa Date: Fri, 28 Jun 2013 22:08:35 +0100 Subject: [PATCH] Fixed bug in handle_message_tag_time(). --- src/common/proto-irc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/proto-irc.c b/src/common/proto-irc.c index 204fccda..c0c75420 100644 --- a/src/common/proto-irc.c +++ b/src/common/proto-irc.c @@ -1352,11 +1352,12 @@ handle_message_tag_time (const char *time, message_tags_data *tags_data) /* we ignore the milisecond part */ z = sscanf (time, "%d-%d-%dT%d:%d:%d", &t.tm_year, &t.tm_mon, &t.tm_mday, - &t.tm_hour, &t.tm_min, &t.tm_sec); + &t.tm_hour, &t.tm_min, &t.tm_sec); if (z != 6) return; + t.tm_year -= 1900; t.tm_isdst = 0; /* day light saving time */ tags_data->timestamp = mktime (&t);