diff --git a/src/append/rolling_file/rolling.rs b/src/append/rolling_file/rolling.rs index 4f4ff0d..5065698 100644 --- a/src/append/rolling_file/rolling.rs +++ b/src/append/rolling_file/rolling.rs @@ -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; }