Commit 80090947 authored by Sébastien Helleu's avatar Sébastien Helleu

irc: fix parsing of "time" message tag on FreeBSD (issue #1289)

parent c96e2f35
......@@ -32,6 +32,7 @@ Bug fixes::
* core: fix forced highlight on messages sent to other buffers (issue #1277)
* buflist: fix warning displayed when script buffers.pl is loaded (issue #1274)
* irc: fix parsing of "time" message tag on FreeBSD (issue #1289)
* relay: fix memory leak in connection of client
Tests::
......
......@@ -6107,7 +6107,7 @@ irc_protocol_get_message_tag_time (struct t_hashtable *tags)
if (strchr (tag_time, '-'))
{
/* date is with ISO 8601 format: "2012-11-24T07:41:02.018Z" */
strptime (tag_time, "%Y-%m-%dT%H:%M:%S%z", &tm_date);
strptime (tag_time, "%Y-%m-%dT%H:%M:%S", &tm_date);
if (tm_date.tm_year > 0)
{
time_msg = mktime (&tm_date);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment