From 25288120be6bb29c3b03d8779cdfd018f4e046d0 Mon Sep 17 00:00:00 2001 From: Diogo Sousa Date: Fri, 28 Jun 2013 23:42:11 +0100 Subject: [PATCH] Fixed another bug in handle_message_tag_time(): tm_mon is between 0 and 11. --- src/common/proto-irc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/proto-irc.c b/src/common/proto-irc.c index c0c75420..25dfc2a8 100644 --- a/src/common/proto-irc.c +++ b/src/common/proto-irc.c @@ -1358,6 +1358,7 @@ handle_message_tag_time (const char *time, message_tags_data *tags_data) return; t.tm_year -= 1900; + t.tm_mon -= 1; t.tm_isdst = 0; /* day light saving time */ tags_data->timestamp = mktime (&t);