diff options
author | Samuel Hernandez <sam.hernandez.amador@gmail.com> | 2020-10-27 15:52:20 -0400 |
---|---|---|
committer | Hubert Hirtz <hubert@hirtz.pm> | 2020-10-27 20:54:49 +0100 |
commit | a370adbc16636802c5e5333ebfebdcb7670e9efd (patch) | |
tree | cc24f65363db08d9b3fdf52047703ec6b47a9234 | |
parent | Vertical channel list (diff) |
irc: Fix requestHistory by making it use UTC
-rw-r--r-- | irc/states.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/irc/states.go b/irc/states.go index c9d344e..027eda2 100644 --- a/irc/states.go +++ b/irc/states.go @@ -397,7 +397,7 @@ func (s *Session) requestHistory(act actionRequestHistory) (err error) { return } - t := act.Before + t := act.Before.UTC() err = s.send("CHATHISTORY BEFORE %s timestamp=%04d-%02d-%02dT%02d:%02d:%02d.%03dZ 100\r\n", act.Target, t.Year(), t.Month(), t.Day(), t.Hour(), t.Minute(), t.Second()+1, t.Nanosecond()/1e6) return |