fix import path, fix #1782

This commit is contained in:
Unknwon 2015-10-15 21:28:12 -04:00
parent a749e6adcf
commit 932dbccb67
23 changed files with 55 additions and 53 deletions

View file

@ -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()