ports/lang/go/patches/patch-src_time_time_test_go

13 lines
567 B
Text
Raw Normal View History

2025-01-15 01:40:21 +00:00
Index: src/time/time_test.go
--- src/time/time_test.go.orig
+++ src/time/time_test.go
@@ -1085,7 +1085,7 @@ func TestLoadFixed(t *testing.T) {
name, offset := Now().In(loc).Zone()
// The zone abbreviation is "-01" since tzdata-2016g, and "GMT+1"
// on earlier versions; we accept both. (Issue #17276).
- if !(name == "GMT+1" || name == "-01") || offset != -1*60*60 {
+ if !(name == "GMT+1" || name == "-01" || name == "+01") || offset != -1*60*60 {
t.Errorf("Now().In(loc).Zone() = %q, %d, want %q or %q, %d",
name, offset, "GMT+1", "-01", -1*60*60)
}