~taiite/public-inbox

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH senpai] irc: Fix requestHistory by making it use UTC

Details
Message ID
<20201027195220.5130-1-sam.hernandez.amador@gmail.com>
DKIM signature
pass
Download raw message
Patch: +1 -1
---
 irc/states.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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
-- 
2.26.2
Details
Message ID
<b0bfbeae-bc01-df4f-afe6-6507869b0fd6@hirtz.pm>
In-Reply-To
<20201027195220.5130-1-sam.hernandez.amador@gmail.com> (view parent)
DKIM signature
pass
Download raw message
Pushed, thank you!
Reply to thread Export thread (mbox)