From aba84efbf84d61a538e8c1e34834cd604f81372c Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 19 Oct 2025 12:56:33 -0500 Subject: more cases handled --- time.string.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'time.string.go') diff --git a/time.string.go b/time.string.go index 22f667d..5d15abe 100644 --- a/time.string.go +++ b/time.string.go @@ -49,5 +49,11 @@ func doTimeString(BUILDTIME string) (*time.Time, error) { } } + // try lots of common stuff + const layout = "2025-10-19 11:47:48 -0500 CDT" + t, err := time.ParseInLocation(layout, parts[0]+" "+parts[1], time.UTC) + if err == nil { + return &t, nil + } return nil, NewFeature } -- cgit v1.2.3