Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: typo in read.rs
Signed-off-by: Chris Hennick <[email protected]>
  • Loading branch information
Pr0methean committed Sep 11, 2025
commit 0a9e1dc83e00343c09255074d4e8d6bcfe7ed1cf
2 changes: 2 additions & 0 deletions src/read.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2062,6 +2062,7 @@ pub fn root_dir_common_filter(path: &Path) -> bool {
true
}

#[cfg(feature = "chrono")]
/// Generate a `SystemTime` from a `DateTime`.
fn datetime_to_systemtime(datetime: &DateTime) -> Option<std::time::SystemTime> {
if let Some(t) = generate_chrono_datetime(datetime) {
Expand All @@ -2071,6 +2072,7 @@ fn datetime_to_systemtime(datetime: &DateTime) -> Option<std::time::SystemTime>
None
}

#[cfg(feature = "chrono")]
/// Generate a `NaiveDateTime` from a `DateTime`.
fn generate_chrono_datetime(datetime: &DateTime) -> Option<chrono::NaiveDateTime> {
if let Some(d) = chrono::NaiveDate::from_ymd_opt(
Expand Down