tidb-dashboard
tidb-dashboard copied to clipboard
fix: fix calendar algorithm
close #1698
When comparing the week, the old algorithm doesn't consider the year of the date. for example: 2024-06-21 (Friday, the 25th week of 2024) and 2023-06-25 (Sunday, the 25th week of 2023). The old algorithm recognizes these 2 dates are in the same week, it's obvious not correct!