From b6e2f13a9a381b1700722f0432dddb785340c726 Mon Sep 17 00:00:00 2001 From: cui Date: Wed, 1 Jul 2026 10:33:45 +0800 Subject: [PATCH] accounts/keystore: fix negative timezone sign in toISO8601 (#35245) --- accounts/keystore/key.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accounts/keystore/key.go b/accounts/keystore/key.go index 9b2ac14712..34712cb842 100644 --- a/accounts/keystore/key.go +++ b/accounts/keystore/key.go @@ -230,7 +230,7 @@ func toISO8601(t time.Time) string { if name == "UTC" { tz = "Z" } else { - tz = fmt.Sprintf("%03d00", offset/3600) + tz = fmt.Sprintf("%+03d00", offset/3600) } return fmt.Sprintf("%04d-%02d-%02dT%02d-%02d-%02d.%09d%s", t.Year(), t.Month(), t.Day(), t.Hour(), t.Minute(), t.Second(), t.Nanosecond(), tz)