Skip to content

Commit

Permalink
Use SetValid instead of setting value directly in Time.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kugelschieber committed Mar 18, 2019
1 parent f793348 commit e92ed93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion time.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func (t *Time) Scan(value interface{}) error {
return errors.New("unexpected type")
}

t.Time = v
t.SetValid(v)
return nil
}

Expand Down

0 comments on commit e92ed93

Please sign in to comment.