Skip to content

Commit

Permalink
use better impl
Browse files Browse the repository at this point in the history
Signed-off-by: tison <[email protected]>
  • Loading branch information
tisonkun committed Aug 12, 2024
1 parent 0d87472 commit f66c2a3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/append/rolling_file/rolling.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,11 +277,7 @@ impl State {

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

0 comments on commit f66c2a3

Please sign in to comment.