From a197207a51c5290ba02af4343c6b0b4c7cfdc5e0 Mon Sep 17 00:00:00 2001 From: Jakob Stendahl Date: Sat, 14 May 2022 14:51:18 +0200 Subject: Fix MonthNumber typo --- src/lib/DateUtils.js | 2 +- src/stores.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/lib/DateUtils.js b/src/lib/DateUtils.js index cf3e4da..9f6a8ad 100644 --- a/src/lib/DateUtils.js +++ b/src/lib/DateUtils.js @@ -1,6 +1,6 @@ /* LUT for date-number from month name. */ const MonthNumber = { - "January": 1, "Feb": 2, "March": 3, "April": 4, "May": 5, "June": 6, "July": 7, "August": 8, "September": 9, "October": 10, "November": 11, "December": 12 + "Jan": 1, "Feb": 2, "March": 3, "April": 4, "May": 5, "Jun": 6, "Jul": 7, "Aug": 8, "Sep": 9, "Oct": 10, "Nov": 11, "Dec": 12 } /** diff --git a/src/stores.ts b/src/stores.ts index cc3a080..1993205 100644 --- a/src/stores.ts +++ b/src/stores.ts @@ -165,6 +165,7 @@ async function updateEarthWeather(location=null) { yr_data["properties"]["timeseries"] = yr_data["properties"]["timeseries"].map(x => ({...x, "time": parseDateAsUTC(x.time)})); } catch (e) { + console.error(e); setUpdated(earth_weather, false, false); return; } @@ -191,6 +192,7 @@ async function updateSpaceWeather() { try { spaceWeather = await getSpaceWeather(); } catch (e) { + console.error(e); setUpdated(space_weather, false, false); return; } -- cgit v1.2.3