Brill
02/27/2025, 3:23 PMStylianos Gakis
02/27/2025, 3:30 PMBrill
02/27/2025, 3:31 PMStylianos Gakis
02/27/2025, 3:32 PMBrill
02/27/2025, 3:33 PMInstant.fromEpochMilliseconds(it).toLocalDateTime(timeZone = TimeZone.currentSystemDefault()).toString()
Stylianos Gakis
02/27/2025, 3:34 PMBrill
02/27/2025, 3:35 PMStylianos Gakis
02/27/2025, 3:36 PMBrill
02/27/2025, 3:37 PMBrill
02/27/2025, 3:38 PMStylianos Gakis
02/27/2025, 3:39 PMBrill
02/27/2025, 3:47 PMBrill
02/27/2025, 4:03 PMInstant.fromEpochMilliseconds(it)
.toLocalDateTime(TimeZone.UTC).toInstant(timeZone)
Brill
02/27/2025, 4:07 PMClock.System.now()
.toLocalDateTime(timeZone = timeZone)
returns the correct value. you are feeding that into the date picker and it explicitly converts it to UTC.
it really shouldn't do that (it doesn't need to), but I think thats how the legacy date picker worked as well.Stylianos Gakis
02/28/2025, 7:45 AM