Skip to content

test: Fix try_from_system_time_to_file_time_before_nt_time_epoch#461

Merged
sorairolake merged 1 commit intodevelopfrom
fix-system-time-on-windows
Mar 6, 2026
Merged

test: Fix try_from_system_time_to_file_time_before_nt_time_epoch#461
sorairolake merged 1 commit intodevelopfrom
fix-system-time-on-windows

Conversation

@sorairolake
Copy link
Copy Markdown
Owner

Description

On Windows std::time::SystemTime::checked_sub_duration will return None for times before the NT time epoch.

See rust-lang/rust#148825

Closes #

Additional context

Checklist

Since Rust 1.94.0, the minimum value of `SystemTime` on Windows is
guaranteed to be `FileTime::NT_TIME_EPOCH`. So I fix this test to not
run on Windows.
@sorairolake sorairolake force-pushed the fix-system-time-on-windows branch from 8625e80 to 3362a98 Compare March 6, 2026 16:38
@sorairolake sorairolake merged commit 3362a98 into develop Mar 6, 2026
24 checks passed
@sorairolake sorairolake deleted the fix-system-time-on-windows branch March 6, 2026 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant