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:
|
case reflect.Struct:
|
||||||
if aa.ConvertibleTo(core.TimeType) {
|
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 {
|
} else {
|
||||||
err = fmt.Errorf("Unsupported struct type %v", vv.Type().Name())
|
err = fmt.Errorf("Unsupported struct type %v", vv.Type().Name())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue