summary refs log tree commit diff stats
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-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
 	{