3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-10 22:19:31 +01:00

server-time: Fix time format

This commit is contained in:
Daniel Oaks 2016-09-07 21:48:03 +10:00
parent ca2255804b
commit 220bc2c609

View File

@ -355,9 +355,9 @@ func (client *Client) Send(tags *map[string]ircmsg.TagValue, prefix string, comm
// attach server-time
if client.capabilities[ServerTime] {
if tags == nil {
tags = ircmsg.MakeTags("time", time.Now().Format(time.RFC3339))
tags = ircmsg.MakeTags("time", time.Now().Format("2006-01-02T15:04:05.999Z"))
} else {
(*tags)["time"] = ircmsg.MakeTagValue(time.Now().Format(time.RFC3339))
(*tags)["time"] = ircmsg.MakeTagValue(time.Now().Format("2006-01-02T15:04:05.999Z"))
}
}