summary refs log tree commit diff stats
path: root/src/common
diff options
context:
space:
mode:
authorDiogo Sousa <diogogsousa@gmail.com>2013-06-28 22:08:35 +0100
committerDiogo Sousa <diogogsousa@gmail.com>2013-06-28 22:08:35 +0100
commitd99d951f7f2620ff99153a0857abdbeef3da2cd9 (patch)
tree4833148a570ff25a6159583d81b4c4f106e3d7d5 /src/common
parent00e15828a138bd046aaef1b78afe4b061ac0e492 (diff)
Fixed bug in handle_message_tag_time().
Diffstat (limited to 'src/common')
-rw-r--r--src/common/proto-irc.c3
1 files changed, 2 insertions, 1 deletions
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);