aboutsummaryrefslogtreecommitdiffstats
path: root/models/models.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-10-15 21:28:12 -0400
committerUnknwon <u@gogs.io>2015-10-15 21:28:12 -0400
commit932dbccb6738b2894e4faafce4f834ef6803efc6 (patch)
tree14cd0a6cbce5906ce394491bd00e1f790be1dcc7 /models/models.go
parenta749e6adcf97d21e8fd64cdf92de52a1ada68f6d (diff)
downloadgitea-932dbccb6738b2894e4faafce4f834ef6803efc6.tar.gz
gitea-932dbccb6738b2894e4faafce4f834ef6803efc6.zip
fix import path, fix #1782
Diffstat (limited to 'models/models.go')
-rw-r--r--models/models.go3
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()