bug fixed for #251

This commit is contained in:
Lunny Xiao 2015-06-02 23:05:42 +08:00
parent 88cba93cd2
commit a4f9a9f877
1 changed files with 1 additions and 1 deletions

View File

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