diff options
author | Unknwon <u@gogs.io> | 2015-09-13 07:32:00 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-09-13 07:32:00 -0400 |
commit | e2d6b0116e44ca0fa2c577f40adde4ebfa612ae0 (patch) | |
tree | 27d69852b0c80f5ae8bfb461ccdded4d8c44703a /models/models.go | |
parent | cd37fccdfbdf5a1a5b2d85263ffb219068d19205 (diff) | |
download | gitea-e2d6b0116e44ca0fa2c577f40adde4ebfa612ae0.tar.gz gitea-e2d6b0116e44ca0fa2c577f40adde4ebfa612ae0.zip |
#1500 only regulateTimeZone for MySQL
Diffstat (limited to 'models/models.go')
-rw-r--r-- | models/models.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 } |