mirror of
https://github.com/astaxie/beego.git
synced 2024-12-23 03:20:50 +00:00
Fixed bug when all "time.Time" params in raw sql queries formatted as time
This commit is contained in:
parent
e430de3307
commit
8beefc8bfd
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user