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:
parent
ca2255804b
commit
220bc2c609
@ -355,9 +355,9 @@ func (client *Client) Send(tags *map[string]ircmsg.TagValue, prefix string, comm
|
|||||||
// attach server-time
|
// attach server-time
|
||||||
if client.capabilities[ServerTime] {
|
if client.capabilities[ServerTime] {
|
||||||
if tags == nil {
|
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 {
|
} else {
|
||||||
(*tags)["time"] = ircmsg.MakeTagValue(time.Now().Format(time.RFC3339))
|
(*tags)["time"] = ircmsg.MakeTagValue(time.Now().Format("2006-01-02T15:04:05.999Z"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user