diff --git a/components/common/DateFilter.js b/components/common/DateFilter.js index 45950086..7e35a010 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) {