fix: headerInfo time UTC() (#16291)

This commit is contained in:
Marko 2023-05-26 09:40:10 +02:00 committed by GitHub
parent 82659a7477
commit 0689b9e90d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -304,6 +304,8 @@ func (c Context) WithCometInfo(cometInfo comet.BlockInfo) Context {
// WithHeaderInfo returns a Context with an updated header info
func (c Context) WithHeaderInfo(headerInfo header.Info) Context {
// Settime to UTC
headerInfo.Time = headerInfo.Time.UTC()
c.headerInfo = headerInfo
return c
}