DataTime over different timezones.

  • Updated

A customer runs a website which is hosted on Azure. For example West Europe (The Netherlands), this is also where the company is located. Now their question: When they enter a date in the Cms the date on the website is shown with a 2 hour difference. How do you fix the 2 hour difference issue?

There are two solutions:

  1. Try to set the timezone of the webapp to the same timezone the company is in. They can set it under application settings in azure: WEBSITE_TIME_ZONE and then they set the time zone they want.
  2. If there are multiple users across the world that's using the site they could try and implement this: