diff options
Diffstat (limited to 'models/models.go')
-rw-r--r-- | models/models.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/models/models.go b/models/models.go index 2410ecd4..2249fee4 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() @@ -91,7 +90,7 @@ func init() { new(Team), new(OrgUser), new(TeamUser), new(TeamRepo), new(Notice), new(EmailAddress)) - gonicNames := []string{"UID", "SSL"} + gonicNames := []string{"SSL"} for _, name := range gonicNames { core.LintGonicMapper[name] = true } |