Skip to content

Commit

Permalink
Fix: backup log file time format.
Browse files Browse the repository at this point in the history
  • Loading branch information
edoger committed May 14, 2023
1 parent ac1baf1 commit dc954a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion file_writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
const dirPerm os.FileMode = 0766
const filePerm os.FileMode = 0666
const fileFlag = os.O_WRONLY | os.O_CREATE | os.O_APPEND
const backupTimeFormat = "2006-01-02T15:04:05.000"
const backupTimeFormat = "2006-01-02T15-04-05.000"

// NewFileWriter creates and returns an io.WriteCloser instance from the given path.
// The max parameter is used to limit the maximum size of the log file, if it is 0, the
Expand Down

0 comments on commit dc954a2

Please sign in to comment.