check dateparser error before using date.Time

This commit is contained in:
Yasuhiro Matsumoto
2026-02-02 00:14:31 +09:00
committed by fiatjaf_
parent b5de7b78bc
commit 49345333c4

View File

@@ -105,10 +105,10 @@ func (t *naturalTimeValue) Set(value string) error {
DefaultTimezone: time.Local, DefaultTimezone: time.Local,
CurrentTime: time.Now(), CurrentTime: time.Now(),
}, value) }, value)
ts = date.Time
if err != nil { if err != nil {
return err return err
} }
ts = date.Time
} }
if t.timestamp != nil { if t.timestamp != nil {