I would like to verify if my understanding of JSR310 classes use-cases are correct, below a diagram with classes, and how i see them fit:
Database (UTC)
||
\/
OffsetDateTime (used in persistence or transmission, databases and XML)
||
\/
Instant (used in business logic, for date time calculations)
||
\/
ZonedDateTime <-- ZoneId (used in presentation layer, requiring the client zoneId)
||
\/
LocalDateTime (used in presentation layer, obtained from ZonedDateTime)
||
\/
Front-end
My uncertainity its related with ZonedDateTime and LocalDateTime, since as far as i understand are both suitable for presentation layer, altough LocalDatetime does not have time-zone or offset.
Its the LocalDateTime what i should send to front-end, after ZonedDateTime has handled all DST conversions and anomalies?
Do i not send a ZonedDateTime to front-end since it has extra information like time-zone?
thanks in advance