diff options
author | Bo-Yi Wu <appleboy.tw@gmail.com> | 2017-01-25 22:54:52 +0800 |
---|---|---|
committer | Kim "BKC" Carlbäcker <kim.carlbacker@gmail.com> | 2017-01-25 16:40:43 +0100 |
commit | 691fbdf1d362e77ab5eb2c42e51844b54a69b058 (patch) | |
tree | bba6615b967afd741b53ff30c1f897e259dcbcaf /vendor/github.com/go-xorm/xorm/engine.go | |
parent | 2831267db1908d8d721b0791c1e963a994802172 (diff) | |
download | gitea-691fbdf1d362e77ab5eb2c42e51844b54a69b058.tar.gz gitea-691fbdf1d362e77ab5eb2c42e51844b54a69b058.zip |
fix: delete attachment after remove comment.
Diffstat (limited to 'vendor/github.com/go-xorm/xorm/engine.go')
-rw-r--r-- | vendor/github.com/go-xorm/xorm/engine.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/vendor/github.com/go-xorm/xorm/engine.go b/vendor/github.com/go-xorm/xorm/engine.go index 1ee1589c31..7bd0df6e89 100644 --- a/vendor/github.com/go-xorm/xorm/engine.go +++ b/vendor/github.com/go-xorm/xorm/engine.go @@ -573,7 +573,7 @@ func (engine *Engine) Id(id interface{}) *Session { return session.Id(id) } -// ID mehtod provoide a condition as (id) = ? +// ID method provoide a condition as (id) = ? func (engine *Engine) ID(id interface{}) *Session { session := engine.NewSession() session.IsAutoClose = true @@ -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 { |