0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-11 04:21:21 +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 Fix incorrect tailwind migration (#30007) 2024-03-22 20:51:29 +01:00
ActivityHeatmap.vue Fix activity heat map padding & locale (#30823) 2024-05-02 13:22:55 +00:00
ContextPopup.vue Improve context popup rendering (#30824) 2024-05-02 15:42:33 +02:00
DashboardRepoList.vue Fix dashboard commit status null access (#30771) 2024-04-30 12:39:36 +00:00
DiffCommitSelector.vue Migrate font-family to tailwind (#30118) 2024-03-28 08:31:07 +00:00
DiffFileList.vue Migrate font-family to tailwind (#30118) 2024-03-28 08:31:07 +00:00
DiffFileTree.vue Migrate margin and padding helpers to tailwind (#30043) 2024-03-24 17:42:49 +01:00
DiffFileTreeItem.vue Enforce trailing comma in JS on multiline (#30002) 2024-03-22 14:06:53 +00:00
PullRequestMergeForm.vue Remove fomantic button module (#30475) 2024-04-14 17:53:52 +00:00
RepoActionView.vue Improve job commit description (#30579) 2024-04-26 02:22:45 +00:00
RepoActivityTopAuthors.vue Enforce trailing comma in JS on multiline (#30002) 2024-03-22 14:06:53 +00:00
RepoBranchTagSelector.vue Fix branch selector UI (#30803) 2024-05-02 10:45:23 +00:00
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 Migrate margin and padding helpers to tailwind (#30043) 2024-03-24 17:42:49 +01:00