From 36b1fddb5825dabbbacf7364183d12b41aaa0ed5 Mon Sep 17 00:00:00 2001 From: umtong <234799116+umtong@users.noreply.github.com> Date: Mon, 26 Oct 2026 02:49:50 +0900 Subject: [PATCH] Honor the default location for time-only strings --- internal/time.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/time.go b/internal/time.go index 906e9aec..099b00ba 100644 --- a/internal/time.go +++ b/internal/time.go @@ -63,7 +63,7 @@ func ParseDateWith(s string, location *time.Location, formats []TimeFormat) (d t // Some time formats have a zone name, but no offset, so it gets // put in that zone name (not the default one passed in to us), but // without that zone's offset. So set the location manually. - if format.Typ <= TimeFormatNamedTimezone { + if !format.HasTimezone() { if location == nil { location = time.Local }