summaryrefslogtreecommitdiff
path: root/time.string.go
diff options
context:
space:
mode:
Diffstat (limited to 'time.string.go')
-rw-r--r--time.string.go3
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])