Skip to content

Fix months order across timezones#853

Merged
theborakompanioni merged 2 commits intojoinmarket-webui:develfrom
pedromtcosta:devel
Sep 27, 2024
Merged

Fix months order across timezones#853
theborakompanioni merged 2 commits intojoinmarket-webui:develfrom
pedromtcosta:devel

Conversation

@pedromtcosta
Copy link
Contributor

Fixes: #852

The default timeZone for Intl.DateTimeFormat is based on the user's timezone, so because I'm behind UTC it get's shifted some hours back which leads to incorrect formatting of the month. Because we send the date in UTC to Intl.DateTimeFormat we can set UTC explicitly as the timeZone to solve the issue.

The test case _selectableMonths / should display month name was not passing on my end, and now it does.

Also fixed a supposedly typo on the describe('_selectableMonth') to reflect the correct name of the function that is being tested. I can adjust it back if you don't want unnecessary diff on the squashed commit.

@theborakompanioni
Copy link
Collaborator

Nice one! Thank you so much @pedromtcosta!
High appreciated 🙏

@theborakompanioni theborakompanioni merged commit d2116f5 into joinmarket-webui:devel Sep 27, 2024
@pedromtcosta
Copy link
Contributor Author

@theborakompanioni my pleasure! Not trying to rush anything, but do you have any idea when I can expect a new build including this fix on Umbrel OS?

@theborakompanioni
Copy link
Collaborator

@theborakompanioni my pleasure! Not trying to rush anything, but do you have any idea when I can expect a new build including this fix on Umbrel OS?

ETA in October. 🤞

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The Month dropdown select is listing the months in the wrong order when configuring a Fidelity Bond

2 participants