When creating date time, use correct time zone - Mendix Forum

When creating date time, use correct time zone


When creating a date time using the dateTime() function, the local time zone is used for date time creation. When the time passes a DST (daylight savings time) boundary, the incorrect time zone is used for dateTime() creation.

For instance, we are in March 2018 and create a dateTime for 1 Nov 2018, 15:00. Current time zone (DST) is GMT+2. In November the time zone equals GMT+1. Mendix will create a time instance for 1 Nov 2018, 15:00 GMT+2, which equals 14:00 GMT+1 (which is correctly displayed for a localized dateTime). This is not the correct wall time for the time instance I wanted to create.

Expected behavior, if I create a dateTime in November, use the time zone that applies in November.

2 answers

Hi Tim,

Thanks for your reply. I'm not sure whether this is a bug or expected behavior by the Mendix R&D team. I just filed a support ticket and wait for their reply.




Menno, this is not an idea but a bug. Can you report it at support.mendix.com please.