Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

10 datetime isnt locale safe #11

Merged
merged 1 commit into from
Nov 16, 2024
Merged

Conversation

tjgruber
Copy link
Owner

This PR resolves issues with the token expiration calculation that were caused by locale-specific date parsing and type mismatches between DateTimeOffset and DateTime. The errors manifested as:

MethodException: Cannot find an overload for "op_Subtraction" and the argument count: "2".
Inconsistent behavior across systems with different regional settings.

@tjgruber tjgruber linked an issue Nov 16, 2024 that may be closed by this pull request
@tjgruber tjgruber added the bug Something isn't working label Nov 16, 2024
@tjgruber tjgruber merged commit 9410978 into master Nov 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Datetime isn't locale safe
1 participant