We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee0bc55 commit bc97908Copy full SHA for bc97908
log/logger/daily.go
@@ -44,7 +44,7 @@ func (daily *Daily) Handle(channel string) (logrus.Hook, error) {
44
logPath+"-%Y-%m-%d"+ext,
45
rotatelogs.WithRotationTime(time.Duration(24)*time.Hour),
46
rotatelogs.WithRotationCount(uint(daily.config.GetInt(channel+".days"))),
47
- rotatelogs.WithClock(rotatelogs.NewClock(carbon.Now().StdTime())),
+ rotatelogs.WithClock(rotatelogs.NewClock(carbon.Now(daily.config.GetString("app.timezone")).StdTime())),
48
)
49
if err != nil {
50
return hook, err
0 commit comments