diff options
| author | Jeff Carr <[email protected]> | 2025-10-19 12:56:33 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-19 12:56:33 -0500 |
| commit | aba84efbf84d61a538e8c1e34834cd604f81372c (patch) | |
| tree | 9400d43f0814e33a57c050e42c6b099e0f13ac60 /time.string.go | |
| parent | 4a74e4af615b6f264c795cb664c55359f588c7c0 (diff) | |
more cases handledv0.0.27
Diffstat (limited to 'time.string.go')
| -rw-r--r-- | time.string.go | 6 |
1 files changed, 6 insertions, 0 deletions
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 } |
