one question. I want to store some time data in room Database. In my application the user can press a Start and Stop Button to save a Start- and a EndTime for doing different tasks. Later he can review all times with a RecyclerView...
Now, the problem is, that i want to keep special anomalies of the different TimeZones. For Example if Summertime (DST) occurs in the TimeZone of the User, then he should have that correct time if he presses the Button and later review the times. But i read that OffsetDateTime does not store such anomalies. Instead ZonedDateTime would be the right one. But if i want to store the times i need to use OffsetDateTime.
What can i do? I guess if i create a ZonedDateTime at the moment the user presses a button, and then i convert it to OffsetDatetime and then back for retrieving Data, the Summertime, or DST, is lost in the converting process?
Anybody can help, please? Searched everything but couldnt see any anwsers.
Thank you.