jmix icon indicating copy to clipboard operation
jmix copied to clipboard

Decide what java type to use for audit fields

Open gorbunkov opened this issue 2 years ago • 0 comments

Currently audit fields added by Studio (lastModifiedDate and createdDate) have java.util.Date type.

Two concerns about that:

  1. The java.util.Date is a legacy datatype and it's not a good that we force users to use it.
  2. We should decide do we need to store the timezone value for audit fields. From one point of view we should because in this case we can always get the exact point in time when the instance was created or modified. From another point of view we may consider these fields as service dates that are always stored in server timezone. In any case we should mention it somewhere in the documentation, because developer may use these fields not properly.

gorbunkov avatar Aug 12 '22 07:08 gorbunkov