diff options
| author | Jeff Carr <[email protected]> | 2025-10-30 14:03:30 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-30 14:03:30 -0500 |
| commit | 357b464107b520fae4ed064b3dac639b14105e1a (patch) | |
| tree | 78785aa9dec34de85392363acd29a37abe6fdb32 /time.string.go | |
| parent | 57fa0dc00c8141c252c8ec452f8a34448315c33d (diff) | |
Diffstat (limited to 'time.string.go')
| -rw-r--r-- | time.string.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/time.string.go b/time.string.go index bfa0007..96afe65 100644 --- a/time.string.go +++ b/time.string.go @@ -24,6 +24,9 @@ import ( // -------------------------------------------------------------------------------- func doTimeString(BUILDTIME string) (*time.Time, error) { + if strings.TrimSpace(BUILDTIME) == "" { + return nil, IsBlank + } parts := strings.Split(BUILDTIME, " ") if len(parts) == 1 { return doTimeSingleString(parts[0]) |
