diff options
author | Diogo Sousa <diogogsousa@gmail.com> | 2013-06-28 23:42:11 +0100 |
---|---|---|
committer | Diogo Sousa <diogogsousa@gmail.com> | 2013-06-28 23:42:11 +0100 |
commit | 25288120be6bb29c3b03d8779cdfd018f4e046d0 (patch) | |
tree | 4e6cb3f6790028bd57f6d8142afc8ab09afd3532 | |
parent | d99d951f7f2620ff99153a0857abdbeef3da2cd9 (diff) |
Fixed another bug in handle_message_tag_time(): tm_mon is between 0 and 11.
-rw-r--r-- | src/common/proto-irc.c | 1 |
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); |