I have following scenario:
- A JSF application that can be used by a user to create tickets.
- These tickets have a validity (from-to)
- I have a application configuration which states in which TimeZone/ZoneID the context of the application runs.
- I need to persist the validity of the ticket and be aware that the application configuration for TimeZone/ZoneID may change and therefore also previously created tickets should be visualized with the correct converted datetime
I'd like to know what the way to go would be? Having some custom converter to store the, adding the TimeZone information as additional field in the database or some other approach? Is this topic database vendor specific or is there some sort of generic solution? I'm a little puzzled, maybe I'm intending to do something that one shouldn't do, cause I didn't find too much information about this topic in general.