-
Notifications
You must be signed in to change notification settings - Fork 735
[BUG] Manual time entry during transaction reverts 6 hours earlier #3451
Comments
Thank you @asadmash for raising Issue #3451! 🚀 Tagging @ILIYANGERMANOV for review & approval 👀 |
I'm on it |
Thank you for your interest @ILIYANGERMANOV! 🎉 If you don't want to work on it now, please un-assign yourself so other contributors can take it. Also, make sure to read our Contribution Guidelines. |
Should be fixed in #3453 |
The screenshot is taken after running the latest code from the "main" branch. |
My suggestion will be - to convert dateTime in UTC in Repository layer while saving the data, rather than in viewModel. After retriving from DB, we can convert it to user's timezone. We can utilize Room's TypeConverter feature for that? |
@jamilxt yes it should be centralized but we have a lot of legacy code that works with
Having LocalDateTime in the UI is terrible for a few reasons:
However, I don't have the time to migrate all legacy code so tried to hotfix it with back and forth time conversions. My point is that if we make everything Instant there will be no need for conversions |
Please confirm the following
Describe the bug
When manually entering a time while adding a transaction, the time reverts to 6 hours earlier than the intended entry. Automatic time picking works correctly, and the issue is specific to manual time entry for transactions.
To Reproduce
Expected behavior
The manually entered time for a transaction should match the intended time without any time shift.
Screenshots
No response
App version
Latest demo APK from TG
Smartphone
Symphony Z40 Android 10
Additional context
Time Zone: UTC (+06:00) BST
The text was updated successfully, but these errors were encountered: