summaryrefslogtreecommitdiffstats
path: root/models/models.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-10-10 19:04:26 -0400
committerUnknwon <u@gogs.io>2015-10-10 19:04:26 -0400
commit570ddefc3259b8bebebf6db6b7d9029b749358f9 (patch)
tree1680f5de10cacaa41fca1afe4ee4d937d23298b0 /models/models.go
parent5676fa5b5d818867a26aeddfbc48f593fab957df (diff)
downloadgitea-570ddefc3259b8bebebf6db6b7d9029b749358f9.tar.gz
gitea-570ddefc3259b8bebebf6db6b7d9029b749358f9.zip
print log every time regulater timezone
Diffstat (limited to 'models/models.go')
-rw-r--r--models/models.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/models/models.go b/models/models.go
index fcbe947e46..2410ecd4e2 100644
--- a/models/models.go
+++ b/models/models.go
@@ -52,8 +52,9 @@ func regulateTimeZone(t time.Time) time.Time {
}
zone := t.Local().Format("-0700")
+ log.Trace("regulateTimeZone: %s - %s", t.Local(), zone)
+
if len(zone) != 5 {
- log.Debug("Unprocessable time: %v", t.Local())
return t
}
hour := com.StrTo(zone[2:3]).MustInt()