mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-28 10:50:34 +00:00
print log every time regulater timezone
This commit is contained in:
parent
5676fa5b5d
commit
570ddefc32
1 changed files with 2 additions and 1 deletions
|
@ -52,8 +52,9 @@ func regulateTimeZone(t time.Time) time.Time {
|
||||||
}
|
}
|
||||||
|
|
||||||
zone := t.Local().Format("-0700")
|
zone := t.Local().Format("-0700")
|
||||||
|
log.Trace("regulateTimeZone: %s - %s", t.Local(), zone)
|
||||||
|
|
||||||
if len(zone) != 5 {
|
if len(zone) != 5 {
|
||||||
log.Debug("Unprocessable time: %v", t.Local())
|
|
||||||
return t
|
return t
|
||||||
}
|
}
|
||||||
hour := com.StrTo(zone[2:3]).MustInt()
|
hour := com.StrTo(zone[2:3]).MustInt()
|
||||||
|
|
Loading…
Reference in a new issue