summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDiogo Sousa <diogogsousa@gmail.com>2013-06-28 23:42:11 +0100
committerDiogo Sousa <diogogsousa@gmail.com>2013-06-28 23:42:11 +0100
commit25288120be6bb29c3b03d8779cdfd018f4e046d0 (patch)
tree4e6cb3f6790028bd57f6d8142afc8ab09afd3532
parentd99d951f7f2620ff99153a0857abdbeef3da2cd9 (diff)
Fixed another bug in handle_message_tag_time(): tm_mon is between 0 and 11.
-rw-r--r--src/common/proto-irc.c1
1 files changed, 1 insertions, 0 deletions
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);