MartinH
MartinH

Reputation: 1490

Azure Web App WEBSITE_TIME_ZONE setting does not work

In our Windows based Azure Web Apps we had a strange problem that our timezone setting was not working. It was set to W. Europe Standard Time but the Web Apps still used UTC for the time. When checking the timezone by using the tzutil /g command in the console we got UTC_dstoff as a result. We also had Web Apps that functioned correctly, but they had exactly the same setting value and gave W. Europe Standard Time as result from the tzutil /g command.

Upvotes: 1

Views: 3539

Answers (1)

MartinH
MartinH

Reputation: 1490

After a few hours searching we decided to compare the Hex values of the strings between the functioning Web Apps and the ones that do not have the correct timezone. As it turns out the timezone setting value of the Web Apps with the UTC_dstoff timezone had none-breaking spaces instead of normal spaces! So if you ever have this issue, please check the hex values of the spaces you used with for example Visual Studio Code and the hexdumper plugin. Maybe it will save you the 4 hours that it took us to figure this out.

Upvotes: 1

Related Questions