diff --git a/config/setup/errors_test.go b/config/setup/errors_test.go index 5ece288d..f161eaf3 100644 --- a/config/setup/errors_test.go +++ b/config/setup/errors_test.go @@ -67,6 +67,7 @@ func TestErrorsParse(t *testing.T) { MaxSize: 2, MaxAge: 10, MaxBackups: 3, + LocalTime: true, }, }}, {`errors { log errors.txt { @@ -86,6 +87,7 @@ func TestErrorsParse(t *testing.T) { MaxSize: 3, MaxAge: 11, MaxBackups: 5, + LocalTime: true, }, }}, } diff --git a/config/setup/log_test.go b/config/setup/log_test.go index a9693a69..ae7a96e3 100644 --- a/config/setup/log_test.go +++ b/config/setup/log_test.go @@ -110,6 +110,7 @@ func TestLogParse(t *testing.T) { MaxSize: 2, MaxAge: 10, MaxBackups: 3, + LocalTime: true, }, }}}, } diff --git a/config/setup/roller.go b/config/setup/roller.go index 3a5b8a8d..fedc52c5 100644 --- a/config/setup/roller.go +++ b/config/setup/roller.go @@ -35,5 +35,6 @@ func parseRoller(c *Controller) (*middleware.LogRoller, error) { MaxSize: size, MaxAge: age, MaxBackups: keep, + LocalTime: true, }, nil }