mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 12:54:38 +03:00
Date precision (#6359)
* Remove month/year only formats from ParseDateStringAsTime * Add precision field to Date and handle parsing year/month-only dates * Add date precision columns for date columns * Adjust UI to account for fuzzy dates
This commit is contained in:
@@ -100,8 +100,9 @@ func (r *updateRecord) setNullTimestamp(destField string, v models.OptionalTime)
|
||||
}
|
||||
}
|
||||
|
||||
func (r *updateRecord) setNullDate(destField string, v models.OptionalDate) {
|
||||
func (r *updateRecord) setNullDate(destField string, precisionField string, v models.OptionalDate) {
|
||||
if v.Set {
|
||||
r.set(destField, NullDateFromDatePtr(v.Ptr()))
|
||||
r.set(precisionField, datePrecisionFromDatePtr(v.Ptr()))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user