From 7aa53cce177bf856e0adf22fc654cbfeb19276ad Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Wed, 3 Feb 2016 11:10:20 +0800 Subject: [PATCH] added column specify time zone support --- column.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/column.go b/column.go index 98d22c22..72ee31b5 100644 --- a/column.go +++ b/column.go @@ -4,6 +4,7 @@ import ( "fmt" "reflect" "strings" + "time" ) const ( @@ -34,6 +35,8 @@ type Column struct { DefaultIsEmpty bool EnumOptions map[string]int SetOptions map[string]int + DisableTimeZone bool + TimeZone *time.Location // column specified time zone } func NewColumn(name, fieldName string, sqlType SQLType, len1, len2 int, nullable bool) *Column {