Skip to content

Commit

Permalink
make strptime work well
Browse files Browse the repository at this point in the history
Signed-off-by: tison <wander4096@gmail.com>
  • Loading branch information
tisonkun committed Aug 11, 2024
1 parent 71ad935 commit 0d87472
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/append/rolling_file/rolling.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,11 @@ 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 0d87472

Please sign in to comment.