0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-26 09:44:26 +01:00
gitea/web_src/js
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
..
components Have time.js use UTC-related getters/setters (#30857) 2024-05-06 09:36:53 +08:00
features Fix issue/PR title edit (#30858) 2024-05-05 13:09:41 +00:00
markup Migrate gt-hidden to tw-hidden (#30046) 2024-03-24 18:23:38 +00:00
modules Fix body margin shifting with modals, fix error on project column edit (#30831) 2024-05-03 01:48:24 +00:00
render
standalone Enforce trailing comma in JS on multiline (#30002) 2024-03-22 14:06:53 +00:00
utils Have time.js use UTC-related getters/setters (#30857) 2024-05-06 09:36:53 +08:00
vendor
webcomponents Rework and fix stopwatch (#30732) 2024-04-30 14:52:46 +00:00
bootstrap.js Do not show monaco JS errors (#30862) 2024-05-05 16:34:13 +00:00
bootstrap.test.js
htmx.js
index.js replace jquery-minicolors with coloris (#30055) 2024-03-29 04:00:07 +01:00
jquery.js Forbid variables containing jQuery collections not having the $ prefix (#29839) 2024-03-16 12:22:16 +00:00
svg.js Update JS any PY dependencies, remove workarounds (#30085) 2024-03-26 09:41:40 +00:00
svg.test.js
utils.js
utils.test.js
vitest.setup.js