DateTime over different timezones (Linux, CMS 12)

  • 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?

 

Try to set the timezone of the webapp to the same timezone the company is in.

DXP CMS 12 environment runs on Linux-based containers, which use the TZ environment variable for timezone configuration (using IANA timezone identifiers), rather than the Windows-specific WEBSITE_TIME_ZONE setting.
 
We can set it under application settings in azure:

  • Key:TZ
  • Value:Europe/Berlin