I'm having some problems with CultureInfo values for a specific culture, "pt-PT". To narrow it down I created an MVC project in VS 2017 using .net framework and added the following line to the view About.cshtml:
<p>@(new System.Globalization.CultureInfo("pt-PT").DateTimeFormat.FirstDayOfWeek)</p>
This was the only change I made to the project created by visual studio.
When I run this project in VS using the IIS Express, the value returned by FirstDayOfWeek is 'Monday'.
However if I run this project in IIS (on the same machine), the value returned by FirstDayOfWeek is 'Sunday'.
I was expecting the value to be the same and to be 'Monday'. I'm puzzled about the diference in values and would like some help in understanding it.
Note: After further tests I concluded that if I change the first day of the week in my computer settings, that change is reflected when running the project in IIS Express. I'm more confused... I guess this property is useless...