0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-14 18:23:58 +01:00
gitea/web_src/js/components
Kemal Zebari 22c7b3a744
Have time.js use UTC-related getters/setters (#30857)
Before this patch, we were using `Date` getter/setter methods that
worked with local time to get a list of Sundays that are in the range of
some start date and end date. The problem with this was that the Sundays
are in Unix epoch time and when we changed the "startDate" argument that
was passed to make sure it is on a Sunday, this change would be
reflected when we convert it to Unix epoch time. More specifically, I
observed that we may get different Unix epochs depending on your
timezone when the returned list should rather be timezone-agnostic.

This led to issues in US timezones that caused the contributor, code
frequency, and recent commit charts to not show any chart data. This fix
resolves this by using getter/setter methods that work with UTC since it
isn't dependent on timezones.

Fixes #30851.

---------

Co-authored-by: Sam Fisher <fisher@3echelon.local>
2024-05-06 09:36:53 +08:00
..
.eslintrc.yaml Improve context popup rendering (#30824) 2024-05-02 15:42:33 +02:00
ActionRunStatus.vue
ActivityHeatmap.vue
ContextPopup.vue Improve context popup rendering (#30824) 2024-05-02 15:42:33 +02:00
DashboardRepoList.vue
DiffCommitSelector.vue
DiffFileList.vue
DiffFileTree.vue
DiffFileTreeItem.vue
PullRequestMergeForm.vue
RepoActionView.vue
RepoActivityTopAuthors.vue
RepoBranchTagSelector.vue
RepoCodeFrequency.vue Have time.js use UTC-related getters/setters (#30857) 2024-05-06 09:36:53 +08:00
RepoContributors.vue Have time.js use UTC-related getters/setters (#30857) 2024-05-06 09:36:53 +08:00
RepoRecentCommits.vue Have time.js use UTC-related getters/setters (#30857) 2024-05-06 09:36:53 +08:00
ScopedAccessTokenSelector.vue