I'm new to working with dates, times and timezones in java, so don't judge strictly). I am developing an application that writes messages to the database at the current date. But there is a situation when a message may come to me from a different timezone and, accordingly, this is a different time and it will not coincide with my time, which I send to the database.
I receive the value "2021-07-28 15:30:00 Europe / Minsk" - date-time with timezone (It can also come in UTC), "Asia / Kamchatka" - timezone into which the date and time should be converted. I want to know the DATE "2021-07-28 15:30:00 Asia / Kamchatka" in the timezone "Europe/Minsk".
The catch is that there is a situation when, when adding time in the time zone (Asia/Kamchatka) 2021-07-28 15: 30: 00 + 9 = 2021-07-29 00:30. I need to get a DATE after all calculations without time.