I\'m getting a UNIX timestamp from DarkSkyApi for the sunrise & sunset times for the selected location and i want to convert it to a DateTime format and display it to th
it sounds like the api is returning different time zones depending on what city you request data
So taking that into consideration, when converting the timestamp to a datetime object, you need to do something like this:
import java.time.*
val dt = Instant.ofEpochSecond(/*put time value here*/)
.atZone(/*put time zone here*/)
.toLocalDateTime() //this will convert it to your system's date time