mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 04:14:39 +03:00
Fix dates
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user