See the documentation here: https://docs.mendix.com/refguide/datetime-handling-faq
Per attribute of type Date and time you can specify whether you want the date and time to be localized. Both localized and non-localized attributes are stored in UTC but only localized attributes are shown in the time zone of the user when displaying (or picking) their value, for example in the client or in generated documents.
Regards,
Ronald
Set the default time zone in Settings/Runtime
Ankur Vig,
Hi...You can set default time zone under project Security….>Runtime tab.
Anybody has got any other idea to solve this issue?
Hi @Ankur vig,
We have similar requirement in our app,
Below is the solution we have done.
We created 2 attributes - 1 with localization ON another with Localization OFF.
When user selects Date/Time - we will always capture it in 1st attribute and we will display a message to the user what is the local time and what is the UTC time.
We kept an onchange microflow for the first attribute and we always convert the time that user selects in First field with the timezone that we need and storing it in attribute2.
We wrote one Java action to change the selected time to a timezone and calling it in the OCH microflow of first attribute.
Regards
Ajay
Anybody found solution for this? we are looking for similar kind of solution.
Thanks in Advance