analytics/assets
Vini Brasil 0cfbcedd84
Fix date picker shifting day bug (#2848)
* Fix date picker shifting day bug

This commit fixes a bug where picking a specific date in custom range
takes you to the stats of the day before.

This was caused because Flatpickr returns a Date instance, and we were
trying to parse this Date instance into day.js using the `utc` function,
assuming it was a ISO-8601 string.

This commit fixes it by casting Date into dayjs using the `dayjs`
function instead of `utc`.

* Fix invalid date Flatpickr bug

This commit fixes a bug where the Flatpickr was not setting the minDate
correctly based on statsBegin. This was failing because parseUTCDate is
now returning a day.js instance, and Flatpickr cannot handle that type.

* Hide dayjs usage in util/date
2023-04-25 12:26:24 +01:00
..
css Refactor top stats and graph positioning (#2662) 2023-02-14 09:59:25 -03:00
js Fix date picker shifting day bug (#2848) 2023-04-25 12:26:24 +01:00
static Show user feedback form on server errors (#2617) 2023-01-25 15:15:41 +01:00
.babelrc React (#17) 2019-11-19 12:30:42 +08:00
.bundlemonrc.json Add remote config 2021-11-24 11:56:24 +02:00
.eslintrc.json Fix open state in combobox (#2797) 2023-03-28 20:06:37 +02:00
.prettierignore 1. Remove the "airbnb" eslint plugin since it conflicts with prettier (#1374) 2021-10-11 14:48:19 +02:00
.prettierrc.json Fix svg favicons (#2295) 2022-10-04 13:20:51 +03:00
.stylelintrc.json Add eslint, stylelint, prettier, and pre-commit (#484) 2020-12-23 10:45:53 +02:00
package-lock.json Bump json5 from 1.0.1 to 1.0.2 in /assets (#2569) 2023-04-07 11:15:08 -03:00
package.json Frontend timezone issues (#2810) 2023-04-07 09:56:02 -03:00
postcss.config.js Update TailwindCSS to 2.0 2020-11-19 14:34:37 +02:00
tailwind.config.js fix class name typo and include it in safelist (#2610) 2023-01-20 10:41:04 -03:00
webpack.config.js Refactor: Use HeadlessUI for search-select component (#2676) 2023-02-20 11:10:11 +02:00