convert to Engine's TZ location for TimeStruct when Get()
This commit is contained in:
parent
4afa1bc3dd
commit
23a3beaced
|
@ -1553,7 +1553,11 @@ func (session *Session) row2Bean(rows *core.Rows, fields []string, fieldsCount i
|
||||||
t.Minute(), t.Second(), t.Nanosecond(), time.Local)
|
t.Minute(), t.Second(), t.Nanosecond(), time.Local)
|
||||||
vv = reflect.ValueOf(tt)
|
vv = reflect.ValueOf(tt)
|
||||||
}
|
}
|
||||||
|
// !nashtsai! convert to engine location
|
||||||
|
t = vv.Interface().(time.Time).In(session.Engine.TZLocation)
|
||||||
|
vv = reflect.ValueOf(t)
|
||||||
fieldValue.Set(vv)
|
fieldValue.Set(vv)
|
||||||
|
|
||||||
// t = fieldValue.Interface().(time.Time)
|
// t = fieldValue.Interface().(time.Time)
|
||||||
// z, _ = t.Zone()
|
// z, _ = t.Zone()
|
||||||
// session.Engine.LogDebug("fieldValue key[%v]: %v | zone: %v | location: %+v\n", key, t, z, *t.Location())
|
// session.Engine.LogDebug("fieldValue key[%v]: %v | zone: %v | location: %+v\n", key, t, z, *t.Location())
|
||||||
|
|
Loading…
Reference in New Issue