This website works better with JavaScript.
Home
Explore
Help
Sign In
closed-social
/
gitea
Watch
3
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
#1500
only regulateTimeZone for MySQL
for-closed-social
Unknwon
9 years ago
parent
cd37fccdfb
commit
e2d6b0116e
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
models/models.go
+ 1
- 1
models/models.go
View File
@ -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
.
UseSQL
ite3
{
if
!
setting
.
Use
My
SQL
{
return
t
}
Write
Preview
Loading…
Cancel
Save