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 date change resetting hour change in datepicker #93

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

rhian-cs
Copy link

Problem

When you're west of UTC time (in my case, UTC-3), whenever you switch dates in a transaction the date goes back a day and time set to an arbitrary value (it's actually set to the correct date but in UTC, which causes it to be 21:00 on UTC-3).

2025-02-10.22-55-20.mp4

Solution

This PR ensures the date is applied in the user's local timezone.

It also makes sure the time (hour/minute) are preserved.

2025-02-10.22-57-16.mp4

P.S. I see this repository hasn't been active for a while but I really like this app so I hope it comes back at some point :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant