Which of the available java 8 time API classes is most suitable for JPA entity mapping in following case:
- contract created at type of information
- the dates are stored in UTC in the database
- business logic does all calculations in UTC
- dates are displayed in the UI in Europe/Vienna timezone
Most examples I've seen use LocalDateTime, but that one doesn't have any notion of time zones. Since all of our business logic should do calculations in UTC and also retrieve/store data in UTC wouldn't Instant or ZonedDateTime be more appropriate?
What practical implications should one consider, when making a decision about which type to use for JPA entity mappings (eg. inability to add a week to Instant)?