Skip to content

Commit 238c6b9

Browse files
committed
set to true while time decode time with empty string. see #55
1 parent 205c0b8 commit 238c6b9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/decoders.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ func (t *Time) Decode(s string) error {
5151
now := time.Now()
5252
if s == "" {
5353
t.Time = now
54+
t.isSet = true
5455
return nil
5556
}
5657
for _, format := range timeFormats {

0 commit comments

Comments
 (0)