Date value sessiontime does not match the date displayed

0
Hello! I am facing some issues with a datetime attribuut. When viewing the attribuut on the display you can see the date 31-05-2025 00:00. However, in the debugger I can only see the following values 30-05-2025 22:00.  The problem is when I do a trimToDays I will compare the wrong date. However, I cannot assume this discrepancy is always the case with this attribuut.  Does someone have an idea how the session time and UTC time are the same? Or how to figure out how many objects have this problem
asked
1 answers
1

THis has to do with the localization setting of your attribute.

If you are only interested in the date portion of your attribute then set the localization to no.

In your situation the user is entering the date as 31-05-2025 00:00 and this is assumed to be localized and when living in GMT+2:00, due to daylight saving time for example, the date will be converted to UTC (GMT+0:00) so 2 hours are deducted from the time entered. This will not be the case when not using localization of yoour attribute. For more information see: https://docs.mendix.com/refguide/date-and-time-handling/

answered