aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/DateUtils.js2
-rw-r--r--src/stores.ts2
2 files changed, 3 insertions, 1 deletions
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;
}