0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-22 05:14:23 +01:00

print log every time regulater timezone

This commit is contained in:
Unknwon 2015-10-10 19:04:26 -04:00
parent 5676fa5b5d
commit 570ddefc32

View file

@ -52,8 +52,9 @@ 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.Debug("Unprocessable time: %v", t.Local())
return t
}
hour := com.StrTo(zone[2:3]).MustInt()