We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c74416e + 75419ce commit e02bb63Copy full SHA for e02bb63
src/components/Footer.tsx
@@ -1,3 +1,4 @@
1
+import dayjs from "dayjs";
2
import React, { useCallback, useContext } from "react";
3
4
import DatepickerContext from "../contexts/DatepickerContext";
@@ -32,8 +33,8 @@ const Footer: React.FC = () => {
32
33
onClick={() => {
34
if (period.start && period.end) {
35
changeDatepickerValue({
- startDate: period.start,
36
- endDate: period.end
+ startDate: dayjs(period.start).format("YYYY-MM-DD"),
37
+ endDate: dayjs(period.end).format("YYYY-MM-DD")
38
});
39
hideDatepicker();
40
}
0 commit comments