From d5eade54945b862081012227c74d15c316f5401c Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Sun, 30 Dec 2018 14:55:11 -0500 Subject: [PATCH] force trailing zeroes in timestamp wire format According to jwheare, ISO 8601 doesn't specify the behavior one way or the other, and the server-time spec is also ambiguous, but this is safest. --- irc/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irc/client.go b/irc/client.go index fe294d3c..921056b9 100644 --- a/irc/client.go +++ b/irc/client.go @@ -28,7 +28,7 @@ import ( const ( // IdentTimeoutSeconds is how many seconds before our ident (username) check times out. IdentTimeoutSeconds = 1.5 - IRCv3TimestampFormat = "2006-01-02T15:04:05.999Z" + IRCv3TimestampFormat = "2006-01-02T15:04:05.000Z" ) var (