Datetime Display in User's Timezone?

I seem to remember this working before, but maybe it was in Jmix 1.5.

This example is using Jmix 2.0 w/ Studio 2.0.4

I have an Entity with an OffsetDateTime field. In the DB the value is stored as 2023-10-14 17:54:47.

When this field is displayed on a standard list view, it shows 10/14/2023 13:54. This is correct according to the user’s time zone, which is UTC-4

When I go to the detail view and the field is displayed in a dateTimePicker, it shows 10/14/2023 5:54 PM.

I also have some views where the standard lastModifiedDate is shown in a textField and it too does not seem to be converted to the user’s time zone.

Am I missing a setting, or did the automatic time zone conversion change?

1 Like

Hi!

The automatic timezone setting functionality will be available in version 2.1.
Framework issue: Setup data aware components to compliant data model · Issue #1969 · jmix-framework/jmix · GitHub

Regards,
Dmitriy