From a4f9a9f877e3421df5e33313473f4c0b77bbb411 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Tue, 2 Jun 2015 23:05:42 +0800 Subject: [PATCH] bug fixed for #251 --- helpers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers.go b/helpers.go index d8268737..979a67a1 100644 --- a/helpers.go +++ b/helpers.go @@ -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()) }