From e2d6b0116e44ca0fa2c577f40adde4ebfa612ae0 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sun, 13 Sep 2015 07:32:00 -0400 Subject: #1500 only regulateTimeZone for MySQL --- models/models.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'models/models.go') diff --git a/models/models.go b/models/models.go index bcb621eb6e..5710930d0b 100644 --- a/models/models.go +++ b/models/models.go @@ -46,7 +46,7 @@ func sessionRelease(sess *xorm.Session) { // Note: get back time.Time from database Go sees it at UTC where they are really Local. // So this function makes correct timezone offset. func regulateTimeZone(t time.Time) time.Time { - if setting.UseSQLite3 { + if !setting.UseMySQL { return t } -- cgit v1.2.3