Localization Issue

0
Hi,   In my application am facing multiple localization issues in different ways as it differs with various time zones. For e.g. The MX locale users always get some error when submitting a data as their timezone differs from the mendix server time Solution: I need to provide a fix as in the application is not depending on timezones and regardless timezones it should work as expected for all the users. Note: I have date and time field where the attribute localize is set to false.
asked
2 answers
0

HI monisha ,

                       Set localise no to your attribute.

   set these format while commiting the object

parseDateTimeUTC(formatDateTime($example/Dated,'dd/MM/yyyy HH:mm'),'dd/MM/yyyy HH:mm')

image.png

answered
0

Hello Monisha,

 

You might want to read this FAQ: https://docs.mendix.com/refguide/datetime-handling-faq/

 

When you creating a date attribute check that localize

 

image.png

 

And check runtime time zone must in UTC  and if you want set default you can check here:

 

image.png

 

When you change the date and time zone and commit it. Must commit with UTC zone

answered