Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-28 04:36:11 +01:00
forgejo/web_src/js/components
Kemal Zebari 16eb85adfb
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>
(cherry picked from commit 22c7b3a74459833b86783e84d4708c8934d34e58)
2024-05-12 20:03:09 +02:00
..
.eslintrc.yaml Implement contributors graph (#27882) 2024-02-17 23:24:31 +01:00
ActionRunStatus.vue Fix incorrect tailwind migration (#30007) 2024-03-26 19:04:27 +01:00
ActivityHeatmap.vue Enforce trailing comma in JS on multiline (#30002) 2024-03-26 19:04:27 +01:00
ContextPopup.test.js [BUG] Render emojis in labels in issue info popup 2024-03-30 11:18:46 +01:00
ContextPopup.vue [PORT] gitea##30237: Fix and rewrite contrast color calculation, fix project-related bugs 2024-04-15 16:11:34 +02:00
DashboardRepoList.vue Fix box rounding on dashboard 2024-04-12 23:16:17 +05:00
DiffCommitSelector.vue Migrate font-family to tailwind (#30118) 2024-03-30 07:17:32 +01:00
DiffFileList.vue Migrate font-family to tailwind (#30118) 2024-03-30 07:17:32 +01:00
DiffFileTree.vue Migrate margin and padding helpers to tailwind (#30043) 2024-03-30 07:17:29 +01:00
DiffFileTreeItem.vue Enforce trailing comma in JS on multiline (#30002) 2024-03-26 19:04:27 +01:00
PullRequestMergeForm.vue Migrate margin and padding helpers to tailwind (#30043) 2024-03-30 07:17:29 +01:00
RepoActionView.test.js Add frontend test 2024-04-23 15:55:39 +02:00
RepoActionView.vue Merge pull request 'Adds support for log-line groups' (#3337) from Mai-Lapyst/forgejo:actions-add-logline-groups into forgejo 2024-04-23 14:32:23 +00:00
RepoActivityTopAuthors.vue Enforce trailing comma in JS on multiline (#30002) 2024-03-26 19:04:27 +01:00
RepoBranchTagSelector.vue Refactor all .length === 0 patterns in JS (#30045) 2024-03-30 07:17:30 +01:00
RepoCodeFrequency.vue Have time.js use UTC-related getters/setters (#30857) 2024-05-12 20:03:09 +02:00
RepoContributors.vue Have time.js use UTC-related getters/setters (#30857) 2024-05-12 20:03:09 +02:00
RepoRecentCommits.vue Have time.js use UTC-related getters/setters (#30857) 2024-05-12 20:03:09 +02:00
ScopedAccessTokenSelector.vue Migrate margin and padding helpers to tailwind (#30043) 2024-03-30 07:17:29 +01:00