-
-
Notifications
You must be signed in to change notification settings - Fork 808
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
[Bug] .ToString("yyyy-MM-dd HH:mm:ss") is not "culture safe" and ":" can be converted to "." #6909
Comments
The link to the documentation: |
The uninternationally-savvy kids set the culture on the entire process and live with it, but we chose not to force it ..... wherever we do a tostring specifying the culture we want (or, the invariantculture for better) is the only way. |
If the change is agreed upon (i'm not savvy enough in this arena), please create 1 PR for all commands. I would like @niphlod's approval because of his background. @FriedrichWeinmann is also an ideal candidate. |
we already switched from 120 to 126 (the "T" made the difference) for some other "culture issue", and we thought we fixed for good. |
I will try to find time for this this afternoon. If someone else wants to take over, please let me know. |
I open this issue to discuss a general solution for converting datetimes into strings.
We found this here: #6452
I used VSCode and searched the code for "yyyy-MM-ddTHH:mm:ss" and found this in:
I used VSCode and searched the code for "yyyy-MM-dd HH:mm:ss" and found this in:
@niphlod came up with
.ToString("yyyy-MM-ddTHH:mm:ss", [System.Globalization.CultureInfo]::InvariantCulture)
.Are there other ideas?
The text was updated successfully, but these errors were encountered: