App Settings - Default time zone = None

0
  What time zone does Mendix use if the default time zone in the App Settings is set to None and also no time zone is stored on User level? Is there a possibility to retrieve the client's time zone somehow?
asked
3 answers
1

I would assume it works the same as for anonymous users. The client's reported timezone will be used.

https://docs.mendix.com/refguide/date-and-time-handling/

answered
0

Users without a user time zone

image.png

answered
0

Hi from a learning path:

DateTime attributes are used to store date and time values within the Mendix platform. The Date, Time, or both components are set depending on the input widget configuration and changes in microflows. A DateTime value is always stored in the database as the number of seconds since the 1st of January, 1970 00:00:00 UTC, a moment that is also known as the Unix epoch.

This is a common standard for calculating and storing date and time values in databases and applications.Localization A DateTime attribute has the option to localize its value. By default, this is turned on and when a DateTime attribute is displayed and/or used in nanoflows in the application it is formatted to a time incorporating the time zone of the browser, which is in most cases the system (device) timezone which is running the client (browser). When turned off, the UTC value will be displayed.

 

This has an effect on both entering new DateTime values and reading them. Let’s take the example of a user with a time zone with offset UTC-6. What will happen if that user selects the date 07/11/2020 using a date picker when the attribute is localized and when it isn’t?When localization is turned on, the selected date and time component will be 07/11/2020 12:00 AM. This value will be stored as UTC 07/11/2020 06:00 AM. When the same user views this value, it will be converted back to 07/11/2020 12:00 AM.

When another user with a time zone offset of UTC+4 views the data, the value will be 07/11/2020 10:00 AM.

When localization is turned off, the selected date and time component will be 07/11/2020 12:00 AM. The stored value will be 07/11/2020 12:00 AM and the user with a UTC+4 offset would see the date as 07/11/2020 12:00 AM. So selection, storage, and viewing in any other time zone is always the same.

answered