I have the following statement:
All times are in UTC and summer time adjustments are not included in the returned data.
With the following json:
{
"results":{
"sunrise":"10:45:50 PM",
"sunset":"10:51:51 AM",
"solar_noon":"4:48:50 AM",
"day_length":"12:06:01",
"civil_twilight_begin":"10:25:26 PM",
"civil_twilight_end":"11:12:15 AM",
"nautical_twilight_begin":"10:00:25 PM",
"nautical_twilight_end":"11:37:16 AM",
"astronomical_twilight_begin":"9:35:23 PM",
"astronomical_twilight_end":"12:02:18 PM"
},
"status":"OK"
}
This json is the result from my app in "CET" for Singapore. I need to include the time adjustment so I can display the sunrise (06:46) and sunset (18:52) in local Singapore time. ...or other parts of the world.
I have been struggling getting this correctly done in a good way. I have tried several suggestions, including manually calculating, found when googling but still have complexity problems. I would like to ask the community for some help solving this in an effective way.