diff options
author | Unknwon <u@gogs.io> | 2015-10-15 21:28:12 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-10-15 21:28:12 -0400 |
commit | 932dbccb6738b2894e4faafce4f834ef6803efc6 (patch) | |
tree | 14cd0a6cbce5906ce394491bd00e1f790be1dcc7 /models/models.go | |
parent | a749e6adcf97d21e8fd64cdf92de52a1ada68f6d (diff) | |
download | gitea-932dbccb6738b2894e4faafce4f834ef6803efc6.tar.gz gitea-932dbccb6738b2894e4faafce4f834ef6803efc6.zip |
fix import path, fix #1782
Diffstat (limited to 'models/models.go')
-rw-r--r-- | models/models.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/models/models.go b/models/models.go index 2410ecd4e2..802bc9426a 100644 --- a/models/models.go +++ b/models/models.go @@ -52,9 +52,8 @@ 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.Error(4, "Unprocessable timezone: %s - %s", t.Local(), zone) return t } hour := com.StrTo(zone[2:3]).MustInt() |