commit a370adb

Samuel Hernandez  ·  2020-10-27 19:52:20 +0000 UTC
parent 7fae7f7
irc: Fix requestHistory by making it use UTC
1 files changed,  +1, -1
+1, -1
1@@ -397,7 +397,7 @@ func (s *Session) requestHistory(act actionRequestHistory) (err error) {
2 		return
3 	}
4 
5-	t := act.Before
6+	t := act.Before.UTC()
7 	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)
8 
9 	return