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
Calender.GetWeekOfYear is not compatible with ISO 8601 and date Unix utility #25762
System.Threading.Thread.CurrentThread.CurrentCulture.Calendar.GetWeekOfYear() return values that are not compatible with ISO 8601 and date Unix utility in some edge cases.
The issue was discovered in PowerShell repo PowerShell/PowerShell#6542 (You should use the build if you want tests with PowerShell Core Get-Date cmdlet).
Activity
tarekgh commentedon Apr 4, 2018
Yes, we are not fully compatible with ISO 8601, you may look at the blog https://blogs.msdn.microsoft.com/shawnste/2006/01/24/iso-8601-week-of-year-format-in-microsoft-net/ for more info which also suggests how you can get the compatible ISO 8601 behavior.
If you want the framework support ISO 8601, please feel free to open new API proposal issue for that. Thanks for reporting the issue.
iSazonov commentedon Apr 9, 2018
@tarekgh Thank for great link!
Issue for API proposal dotnet/corefx#28933