Skip to content

Remove panics from windows' local#989

Closed
nekevss wants to merge 3 commits intochronotope:mainfrom
nekevss:windows-offset-changes
Closed

Remove panics from windows' local#989
nekevss wants to merge 3 commits intochronotope:mainfrom
nekevss:windows-offset-changes

Conversation

@nekevss
Copy link
Contributor

@nekevss nekevss commented Mar 11, 2023

Hi there! 😄

Not entirely sure if this should be 0.4.x or 0.5, so please feel free to let me know if I'm on the wrong branch.

Submitting this to update the calling of windows system functions (I believe someone else may be taking a look at the subtracting 1900 issue). This is mainly meant to remove the panics that are being thrown whenever an invalid date is provided to the windows_sys functions along with providing some default struct functions to minimize the use of mem::zeroed.

This does add an unwrap to TimeSpec::local that would still cause a panic on any error cases, but the behavior would essentially remain consistent with the current behavior.

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