diff options
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  }  | 
