jmix icon indicating copy to clipboard operation
jmix copied to clipboard

OffsetTime datatype does not consider user's TimeZone

Open Flaurite opened this issue 1 year ago • 0 comments

Environment

Jmix version: 1.x, 2.x

Bug Description

In general all types that aware of TimeZone before saving to database convert to values with system TimeZone. Before showing these values in UI, datatypes convert values to user's TimeZone. But the OffsetTime datatype does not convert its value and we see value in system TimeZone.

Probably, need to use TimeZoneAwareDatatype.class

Steps To Reproduce

  1. Create an entity with OffsetTime property
  2. Create new instance with 12:00 PM value.
  3. Create new user with different time zone than system one.
  4. Open entity list view.

ER The property in a column should have the following value: 11:00 +0300. AR 12:00 +0400

And the main problem in details view, because user sees just 12:00 without information about time zone.

Flaurite avatar Jun 21 '24 12:06 Flaurite