diff --git a/orm/db_utils.go b/orm/db_utils.go index 0279a14a..923917ec 100644 --- a/orm/db_utils.go +++ b/orm/db_utils.go @@ -147,8 +147,10 @@ outFor: arg = v.In(tz).Format(formatDate) } else if fi != nil && fi.fieldType == TypeDateTimeField { arg = v.In(tz).Format(formatDateTime) - } else { + } else if fi != nil && fi.fieldType == TypeTimeField { arg = v.In(tz).Format(formatTime) + } else { + arg = v.In(tz).Format(formatDateTime) } } else { typ := val.Type()