From 96aa1499667ca8417d26d881b6678165782acc36 Mon Sep 17 00:00:00 2001 From: Shintaro Kaneko Date: Wed, 3 Aug 2016 16:59:55 +0000 Subject: [PATCH] Apply the given location instead of engine.location --- engine.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/engine.go b/engine.go index 54c3a563..5c500736 100644 --- a/engine.go +++ b/engine.go @@ -1599,6 +1599,8 @@ func (engine *Engine) formatTime(tz *time.Location, sqlTypeName string, t time.T return t } if tz != nil { + t = t.In(tz) + } else { t = engine.TZTime(t) } switch sqlTypeName {