This commit is contained in:
Stash Dev
2020-01-06 15:35:24 -08:00
parent f8aa0433a3
commit a24194164d
2 changed files with 7 additions and 6 deletions

View File

@@ -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())