Merge pull request #2228 from Hepri/develop

Rework getFlatParams for time.Time
This commit is contained in:
astaxie 2016-10-30 10:48:49 +08:00 committed by GitHub
commit 5a8c40710c
1 changed files with 3 additions and 1 deletions

View File

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