be consistent

This commit is contained in:
2026-07-03 20:35:45 -04:00
parent 1ff96ee9c8
commit 9158648f3f
15 changed files with 80 additions and 80 deletions
+8
View File
@@ -68,6 +68,14 @@ func parseTime(s string) time.Time {
return t
}
// parseTimeAny parses an interface{} (from SQL) to time.Time, zero on failure.
func parseTimeAny(v interface{}) time.Time {
if s, ok := v.(string); ok {
return parseTime(s)
}
return time.Time{}
}
// parseTimePtr parses an interface{} (from SQL) to *time.Time
func parseTimePtr(v interface{}) *time.Time {
if v == nil {