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

Incorrect result for DateTime.ToString with more than 3 g #4062

Closed
MangelMaxime opened this issue Feb 22, 2025 · 1 comment · Fixed by #4065
Closed

Incorrect result for DateTime.ToString with more than 3 g #4062

MangelMaxime opened this issue Feb 22, 2025 · 1 comment · Fixed by #4065

Comments

@MangelMaxime
Copy link
Member

DateTime(2014, 7, 1, 16, 37, 0).ToString("r gg gggggggggggg") |> printfn "%A"

Should give "r A.D. A.D." but currently gives "r A.D"

@MangelMaxime
Copy link
Member Author

It seems to be common to all the format when we exceed the standard number of token in the format.

For example, this has a similar issue

DateTime(2014, 7, 1, 16, 37, 0).ToString("r HH H HHHH", CultureInfo.InvariantCulture) |> printfn "%A"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant