-
Notifications
You must be signed in to change notification settings - Fork 722
Fix Incorrect Time Display After Saving Transaction #3433
Conversation
@@ -704,7 +705,7 @@ class EditTransactionViewModel @Inject constructor( | |||
dateTime = when { | |||
loadedTransaction().dateTime == null && | |||
dueDate.value == null -> { | |||
timeNowUTC() | |||
timeProvider.utcNow().atZone(timeProvider.getZoneId()).toLocalDateTime() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested it, the date is showing correctly after saving the transaction but the is issue in the balance calculation. the balance didnt get updated for me...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @akashs056! Much appreciated that you tested 🙌
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@akashs056 thanks for pointing it out.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Folks, let's do the proper fix by reworking the entire app time handling using the TimeConverter
API - small fixes won't solve it - they fix one thing and break another
@ILIYANGERMANOV sure, since this will be a big task, can I create another issue and attach with this PR once goal is reached? |
Yeah that makes sense |
@ILIYANGERMANOV @akashs056 will reopen PR once done with |
@shamim-emon I have errors in #3435 (the app crashes with Long overflow) and other stuff are broken. I'll see I'll easily fix them. Ideally, at one point we should rewrite the legacy properly and cover it with tests (like the new APIs) |
Pull request (PR) checklist
Please check if your pull request fulfills the following requirements:
Screen recording of your changes (if applicable):
What's changed?
Describe with a few bullets what's new:
Incorrect Time Display After Saving Transaction
issueRisk factors
What may go wrong if we merge your PR?
In what cases won't your code work?
Does this PR close any GitHub issues? (do not delete)
Troubleshooting GitHub Actions (CI) failures ❌
Pull request checks failing? Read our CI Troubleshooting guide.