Fix typo
This commit is contained in:
parent
f065fa22c2
commit
ac5fea2c64
|
@ -100,7 +100,7 @@
|
|||
var time = times.validTime[1].replace(/-/g, "").replace(/:/g, "");
|
||||
var textTime = new Date(times.validTime[1]).toLocaleString("en-GB", {dateStyle: "short", timeStyle: "short"});
|
||||
var textTimeUTC = new Date(times.validTime[1]).toLocaleTimeString("en-GB", {timeZone: "UTC", timeStyle: "short"});
|
||||
document.getElementById('clouds').textContent = "Cloud Coverage Forcast for " + textTime + " (" + textTimeUTC+" UTC)";
|
||||
document.getElementById('clouds').textContent = "Cloud Coverage Forecast for " + textTime + " (" + textTimeUTC+" UTC)";
|
||||
const res = await fetch(`https://opendata-download-metfcst.smhi.se/api/category/pmp3g/version/2/geotype/multipoint/validtime/${time}/parameter/tcc_mean/leveltype/hl/level/0/data.json`);
|
||||
const data = await res.json();
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user