소스 검색

#1500 only regulateTimeZone for MySQL

Unknwon 9 년 전
부모
커밋
e2d6b0116e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      models/models.go

+ 1 - 1
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
 	}