Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.
TypeScript analyticsaudience-segmentationchartscohort-analysisgoogle-analyticsproduct-analyticsstatisticsuser-journeyweb-analytics
feature(DateFilter): use locale for date ranges
Alexander Kleina48c33fcd678
diff --git a/components/common/DateFilter.js b/components/common/DateFilter.jsindex 45950086c..7e35a0101 100644--- a/components/common/DateFilter.js+++ b/components/common/DateFilter.js@@ -55,6 +55,7 @@ const filterOptions = [];function DateFilter({ value, startDate, endDate, onChange, className }) {+ const [locale] = useLocale();const [showPicker, setShowPicker] = useState(false);const displayValue =value === 'custom' ? (@@ -68,7 +69,7 @@ function DateFilter({ value, startDate, endDate, onChange, className }) {setShowPicker(true);return;}- onChange(getDateRange(value));+ onChange(getDateRange(value, locale));}function handlePickerChange(value) {