mirror of https://github.com/stashapp/stash.git
Fix dates
This commit is contained in:
parent
b70d5f33d2
commit
8d23357a13
|
@ -22,8 +22,10 @@ func (t *SQLiteDate) Scan(value interface{}) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
t.String = dateTime.Format("2006-01-02")
|
t.String = dateTime.Format("2006-01-02")
|
||||||
if t.String != "" {
|
if t.String != "" && t.String != "0001-01-01" {
|
||||||
t.Valid = true
|
t.Valid = true
|
||||||
|
} else {
|
||||||
|
t.Valid = false
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue