pingcap / tidb-dashboard

A Web UI for monitoring, diagnosing and managing the TiDB cluster.
https://docs.pingcap.com/tidb/stable/dashboard-intro
Apache License 2.0
173 stars 126 forks source link

fix: fix calendar algorithm #1699

Closed baurine closed 2 days ago

baurine commented 3 days ago

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!

ti-chi-bot[bot] commented 2 days ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: shhdgit

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[OWNERS](https://github.com/pingcap/tidb-dashboard/blob/master/OWNERS)~~ [shhdgit] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment
ti-chi-bot[bot] commented 2 days ago

[LGTM Timeline notifier]

Timeline: