jmix
jmix copied to clipboard
OffsetTime datatype does not consider user's TimeZone
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
- Create an entity with
OffsetTimeproperty - Create new instance with
12:00 PMvalue. - Create new user with different time zone than system one.
- 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.