mirror of
https://github.com/plausible/analytics.git
synced 2024-12-21 00:21:43 +03:00
0cfbcedd84
* 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 |
||
---|---|---|
.. | ||
components | ||
stats | ||
util | ||
api.js | ||
comparison-consumer-hoc.js | ||
comparison-context.js | ||
comparison-input.js | ||
comparison-provider-hoc.js | ||
datepicker.js | ||
error-boundary.js | ||
fade-in.js | ||
filters.js | ||
historical.js | ||
index.js | ||
keybinding.js | ||
mount.js | ||
pinned-header-hoc.js | ||
query.js | ||
realtime.js | ||
router.js | ||
site-switcher.js |