{/if}
diff --git a/src/modes/exportdata/ExportData.svelte b/src/modes/exportdata/ExportData.svelte
index bde068c3..cbad4545 100644
--- a/src/modes/exportdata/ExportData.svelte
+++ b/src/modes/exportdata/ExportData.svelte
@@ -55,7 +55,8 @@
startDate = urlParams.has('start_day') ? new Date(urlParams.get('start_day')) : param.sparkLineTimeFrame.min;
endDate = urlParams.has('end_day') ? new Date(urlParams.get('end_day')) : param.sparkLineTimeFrame.max;
- // Also normalize the dates to the current timezone
+ // Normalize the datest to the current timezone by *subtracting* the timezone
+ // offset (to account for negative timezones), multiplied by 60000 (minutes -> ms)
startDate = new Date(startDate.getTime() - startDate.getTimezoneOffset() * -60000);
endDate = new Date(endDate.getTime() - endDate.getTimezoneOffset() * -60000);
}
@@ -88,7 +89,12 @@
// Populate region based on URL params... but let the user override this later
if (urlParams.has('geo_value') && !geoURLSet) {
- let infos = infosByLevel[geoType].filter((d) => d.propertyId == urlParams.get('geo_value'));
+ let geo_value = urlParams.get('geo_value');
+ // Allow for lowercase state names e.g. 'ca' -> 'CA'
+ if (geoType == 'state') {
+ geo_value = geo_value.toUpperCase();
+ }
+ let infos = infosByLevel[geoType].filter((d) => d.propertyId == geo_value);
addRegion(infos[0]);
geoURLSet = true;
}
diff --git a/src/modes/indicator/GeoTable.svelte b/src/modes/indicator/GeoTable.svelte
index 542022eb..c95afd6f 100644
--- a/src/modes/indicator/GeoTable.svelte
+++ b/src/modes/indicator/GeoTable.svelte
@@ -182,7 +182,7 @@