Skip to content

Commit

Permalink
make strptime work well
Browse files Browse the repository at this point in the history
Signed-off-by: tison <[email protected]>
  • Loading branch information
tisonkun committed Aug 11, 2024
1 parent 71ad935 commit 1fdad8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/append/rolling_file/rolling.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ impl State {

if self.log_filename_prefix.is_none()
&& self.log_filename_suffix.is_none()
&& Zoned::strptime(self.date_format, filename).is_err()
&& Zoned::strptime(format!("{} %:z", self.date_format), format!("{filename} +00:00")).is_err()
{
return None;
}
Expand Down

0 comments on commit 1fdad8c

Please sign in to comment.