summary refs log tree commit diff stats
path: root/src/common/proto-irc.c
diff options
context:
space:
mode:
authorDiogo Sousa <diogogsousa@gmail.com>2013-06-30 15:00:38 +0100
committerDiogo Sousa <diogogsousa@gmail.com>2013-06-30 15:00:38 +0100
commit73c9321361b38e75d442780280175d5298893c8f (patch)
tree16c18e61ab5feb4dd81155da2e2e288ce6629482 /src/common/proto-irc.c
parent25288120be6bb29c3b03d8779cdfd018f4e046d0 (diff)
Fixed server-time timestamps issue regarding local time.
Diffstat (limited to 'src/common/proto-irc.c')
-rw-r--r--src/common/proto-irc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/proto-irc.c b/src/common/proto-irc.c
index 25dfc2a8..7742c064 100644
--- a/src/common/proto-irc.c
+++ b/src/common/proto-irc.c
@@ -1368,6 +1368,9 @@ handle_message_tag_time (const char *time, message_tags_data *tags_data)
 			tags_data->timestamp = 0;
 			return;
 		}
+
+		/* get rid of the local time (mktime() receives a local calendar time) */
+		tags_data->timestamp -= timezone;
 	}
 	else
 	{