Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix months order across timezones #853

Merged
merged 2 commits into from
Sep 27, 2024

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
1 check passed
@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