Commit 69950e57 authored by Maxime's avatar Maxime

Use localtime for the log roller timestamp

parent d44ab3db
...@@ -67,6 +67,7 @@ func TestErrorsParse(t *testing.T) { ...@@ -67,6 +67,7 @@ func TestErrorsParse(t *testing.T) {
MaxSize: 2, MaxSize: 2,
MaxAge: 10, MaxAge: 10,
MaxBackups: 3, MaxBackups: 3,
LocalTime: true,
}, },
}}, }},
{`errors { log errors.txt { {`errors { log errors.txt {
...@@ -86,6 +87,7 @@ func TestErrorsParse(t *testing.T) { ...@@ -86,6 +87,7 @@ func TestErrorsParse(t *testing.T) {
MaxSize: 3, MaxSize: 3,
MaxAge: 11, MaxAge: 11,
MaxBackups: 5, MaxBackups: 5,
LocalTime: true,
}, },
}}, }},
} }
......
...@@ -110,6 +110,7 @@ func TestLogParse(t *testing.T) { ...@@ -110,6 +110,7 @@ func TestLogParse(t *testing.T) {
MaxSize: 2, MaxSize: 2,
MaxAge: 10, MaxAge: 10,
MaxBackups: 3, MaxBackups: 3,
LocalTime: true,
}, },
}}}, }}},
} }
......
...@@ -35,5 +35,6 @@ func parseRoller(c *Controller) (*middleware.LogRoller, error) { ...@@ -35,5 +35,6 @@ func parseRoller(c *Controller) (*middleware.LogRoller, error) {
MaxSize: size, MaxSize: size,
MaxAge: age, MaxAge: age,
MaxBackups: keep, MaxBackups: keep,
LocalTime: true,
}, nil }, nil
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment