You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Icorrect comment for the year pattern in DateTimeFormat #95629
Activity
tarekgh commentedon Dec 5, 2023
@Guiorgy are you interested to submit a PR to fix this?
MichalPetryka commentedon Dec 5, 2023
Would this be a documentation change or behaviour change?
Guiorgy commentedon Dec 5, 2023
@MichalPetryka Unless we want to change the API, only the comments need to be edited to reflect the reality, so I guess documentation?
tarekgh commentedon Dec 5, 2023
@MichalPetryka this is just fixing the comments in the source files:
https://github.com/dotnet/runtime/blob/6249fd2e59ed1308eb7cf976fb48c1ecab5eaa4e/src/libraries/System.Private.CoreLib/src/System/Globalization/DateTimeFormat.cs
https://github.com/dotnet/runtime/blob/6249fd2e59ed1308eb7cf976fb48c1ecab5eaa4e/src/libraries/System.Private.CoreLib/src/System/Globalization/DateTimeFormat.cs#L621C52-L621C52
Guiorgy commentedon Dec 5, 2023
@tarekgh Is #95650 satisfactory?
Guiorgy commentedon Dec 5, 2023
Actually, "yyyy" also prints with leading zeroes when year is below 1000:'
So I don't thing the PR is quite rightChanged commit
tarekgh commentedon Dec 5, 2023
Right, all
yy,yyy,yyyy, andyyyyyare using leading zeros if the year number has number of digits less than the number of y's.Fix DateTimeFormat comments for year pattern (#95629) (#95650)