-
Notifications
You must be signed in to change notification settings - Fork 33
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
Date/Time serialization uses current culture #280
Comments
Thanks for raising this @filipnavara Any chance you'd be willing to submit a PR to resolve this? |
Not planning to do so any time soon. I still have other pressing issues on my backlog. |
Transferring issue as part of #238 |
@andrueastman Can I take it? The issue with current culture is also for numbers. So I can fix datetime and numbers and prepare some unit tests. Once you decide how to resolve #283, it can be implemented in this ticket. |
As a general rule of thumb, if issues are not assigned to anyone, nobody from our team is working on them (as in writing code to fix it, we might still be talking about it, etc...). We'll be more than happy to see a PR coming to address that. |
Please go ahead. @MartinM85 |
There are multiple calls to
DateTime.TryParse
,DateTimeOffset.TryParse
and the respectiveToString
counterparts without a specified culture parameter. This implies a current culture is used instead ofCultureInfo.InvariantCulture
which would be an obvious choice for data interchange format.Notably, the culture can use a non-Gregorian calendar, such as Persian one, which will likely result in incorrectly parsed/serialized data.
The text was updated successfully, but these errors were encountered: