summaryrefslogtreecommitdiffstats
path: root/models/models.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-10-09 23:05:20 -0400
committerUnknwon <u@gogs.io>2015-10-09 23:05:20 -0400
commitf1c2276c8dadc4dd19b48dbdee38baaea2e85108 (patch)
tree5b7a7d3663930fd7501a85782aac359bdcbed25b /models/models.go
parent2020bafee189c1ca57ec904f1a1f860e041b1a6c (diff)
downloadgitea-f1c2276c8dadc4dd19b48dbdee38baaea2e85108.tar.gz
gitea-f1c2276c8dadc4dd19b48dbdee38baaea2e85108.zip
add log when cannot regulate time
Diffstat (limited to 'models/models.go')
-rw-r--r--models/models.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/models/models.go b/models/models.go
index b26cf60b64..fcbe947e46 100644
--- a/models/models.go
+++ b/models/models.go
@@ -20,6 +20,7 @@ import (
_ "github.com/lib/pq"
"github.com/gogits/gogs/models/migrations"
+ "github.com/gogits/gogs/modules/log"
"github.com/gogits/gogs/modules/setting"
)
@@ -52,6 +53,7 @@ func regulateTimeZone(t time.Time) time.Time {
zone := t.Local().Format("-0700")
if len(zone) != 5 {
+ log.Debug("Unprocessable time: %v", t.Local())
return t
}
hour := com.StrTo(zone[2:3]).MustInt()