dateTime attribute displays as 1 day old

0
I localized dateTime attribute in my entity. I populate it using parseDateTime() function. But when it shows up on the page it is off by 1 day. 08-MAR-2021 shows up as 07-MAR-2021 Mx Version 8.18.2 The Microflow itself is exectuted using JavaAction executeMicroflowInBackground.
asked
2 answers
2

Read this: https://docs.mendix.com/refguide/datetime-handling-faq

All the dates are stored as UTC in the database.

Regards,

Ronald

[EDIT]

And do note that execute microflow actions do not have a user context and hence no timezone.

answered
0

executeMicroflowInBackground is running in the system context so will be using UTC for it’s timezone, not your current locale. 

This has caught me out in the past, and is a very easy mistake to make. 

Good luck!

answered