mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
temp
This commit is contained in:
@@ -32,6 +32,9 @@ func (t *SQLiteDate) Scan(value interface{}) error {
|
||||
|
||||
// Value implements the driver Valuer interface.
|
||||
func (t SQLiteDate) Value() (driver.Value, error) {
|
||||
if !t.Valid {
|
||||
return nil, nil
|
||||
}
|
||||
result, err := utils.ParseDateStringAsFormat(t.String, "2006-01-02")
|
||||
if err != nil {
|
||||
logger.Debugf("sqlite date conversion error: %s", err.Error())
|
||||
|
||||
Reference in New Issue
Block a user