From f1c2276c8dadc4dd19b48dbdee38baaea2e85108 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Fri, 9 Oct 2015 23:05:20 -0400 Subject: [PATCH] add log when cannot regulate time --- models/models.go | 2 ++ 1 file changed, 2 insertions(+) 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()