getMoonPhaseData = async(latitude, longitude) => {
const apiUrl = 'https://moonorganizer.com/api/public/moon-phase'
let currentDate = new Date();
currentDate.setHours(currentDate.getHours() - currentDate.getTimezoneOffset()/60 + future);
const res = await fetch(apiUrl, {
method: 'POST',
headers: {
'Content-Type': 'application/json;charset=utf-8'
},
body: JSON.stringify({latitude, longitude, date: currentDate})
});
const moonPhaseData = await res.json();
return moonPhaseData;
}