time.Unix still requires normalization to UTC

This commit is contained in:
Shivaram Lingamneni 2020-02-20 03:06:24 -05:00
parent 8031085c26
commit fab0630180
6 changed files with 10 additions and 10 deletions

View file

@ -80,5 +80,5 @@ func (err *IncompatibleSchemaError) Error() string {
}
func NanoToTimestamp(nanotime int64) string {
return time.Unix(0, nanotime).Format(IRCv3TimestampFormat)
return time.Unix(0, nanotime).UTC().Format(IRCv3TimestampFormat)
}