0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2025-01-06 22:40:31 -05:00

Use localtime for the log roller timestamp

This commit is contained in:
Maxime 2015-09-04 19:18:01 +02:00
parent d44ab3dbab
commit 69950e57f0
3 changed files with 4 additions and 0 deletions

View file

@ -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,
},
}},
}

View file

@ -110,6 +110,7 @@ func TestLogParse(t *testing.T) {
MaxSize: 2,
MaxAge: 10,
MaxBackups: 3,
LocalTime: true,
},
}}},
}

View file

@ -35,5 +35,6 @@ func parseRoller(c *Controller) (*middleware.LogRoller, error) {
MaxSize: size,
MaxAge: age,
MaxBackups: keep,
LocalTime: true,
}, nil
}