bug fixed for #251
This commit is contained in:
parent
88cba93cd2
commit
a4f9a9f877
|
@ -134,7 +134,7 @@ func reflect2value(rawValue *reflect.Value) (str string, err error) {
|
|||
//时间类型
|
||||
case reflect.Struct:
|
||||
if aa.ConvertibleTo(core.TimeType) {
|
||||
str = rawValue.Convert(core.TimeType).Interface().(time.Time).Format(time.RFC3339Nano)
|
||||
str = vv.Convert(core.TimeType).Interface().(time.Time).Format(time.RFC3339Nano)
|
||||
} else {
|
||||
err = fmt.Errorf("Unsupported struct type %v", vv.Type().Name())
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue