mirror of
https://github.com/plausible/analytics.git
synced 2024-12-21 08:31:29 +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 |
||
---|---|---|
.. | ||
date.js | ||
filters.js | ||
number-formatter.js | ||
realtime-update-timer.js | ||
seconds-since-last-load.js | ||
storage.js | ||
tooltip.js | ||
url.js |