mirror of
https://github.com/astaxie/beego.git
synced 2024-11-26 08:11:29 +00:00
Merge pull request #2228 from Hepri/develop
Rework getFlatParams for time.Time
This commit is contained in:
commit
5a8c40710c
@ -147,8 +147,10 @@ outFor:
|
|||||||
arg = v.In(tz).Format(formatDate)
|
arg = v.In(tz).Format(formatDate)
|
||||||
} else if fi != nil && fi.fieldType == TypeDateTimeField {
|
} else if fi != nil && fi.fieldType == TypeDateTimeField {
|
||||||
arg = v.In(tz).Format(formatDateTime)
|
arg = v.In(tz).Format(formatDateTime)
|
||||||
} else {
|
} else if fi != nil && fi.fieldType == TypeTimeField {
|
||||||
arg = v.In(tz).Format(formatTime)
|
arg = v.In(tz).Format(formatTime)
|
||||||
|
} else {
|
||||||
|
arg = v.In(tz).Format(formatDateTime)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
typ := val.Type()
|
typ := val.Type()
|
||||||
|
Loading…
Reference in New Issue
Block a user