summaryrefslogtreecommitdiffstats
path: root/models/models.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-09-13 07:32:00 -0400
committerUnknwon <u@gogs.io>2015-09-13 07:32:00 -0400
commite2d6b0116e44ca0fa2c577f40adde4ebfa612ae0 (patch)
tree27d69852b0c80f5ae8bfb461ccdded4d8c44703a /models/models.go
parentcd37fccdfbdf5a1a5b2d85263ffb219068d19205 (diff)
downloadgitea-e2d6b0116e44ca0fa2c577f40adde4ebfa612ae0.tar.gz
gitea-e2d6b0116e44ca0fa2c577f40adde4ebfa612ae0.zip
#1500 only regulateTimeZone for MySQL
Diffstat (limited to 'models/models.go')
-rw-r--r--models/models.go2
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
}