ivy-wallet icon indicating copy to clipboard operation
ivy-wallet copied to clipboard

[BUG] Incorrect Time Display After Saving Transaction

Open akashs056 opened this issue 1 year ago • 8 comments

Please confirm the following

Describe the bug

After adding a transaction (Income or Expence), the correct time and date are initially shown. However, once the transaction is saved and reopened, the displayed time becomes incorrect

Here the reference https://github.com/user-attachments/assets/3ceec8f1-5566-4565-bf56-8a235f2a450e

To Reproduce

  1. Add an income or expense transaction in the app.
  2. Note the time displayed before saving the transaction.
  3. Click "Save" to save the transaction.
  4. Navigate to the home page.
  5. Reopen the saved transaction.
  6. Observe that the time displayed has changed or is incorrect.

Expected behavior

The expected behavior is that the time and date displayed for a transaction should remain consistent and accurate after saving and reopening the transaction. The time noted before saving should match the time shown when the transaction is reopened.

Screenshots

No response

App version

v2024.8.11 (194) from GitHub

Smartphone

Realme 8 Android 11

Additional context

My Time zone : UTC+05:30 ( India )

akashs056 avatar Aug 23 '24 18:08 akashs056

Thank you @akashs056 for raising Issue #3424! 🚀 What's next? Read our Contribution Guidelines 📚.

Tagging @ILIYANGERMANOV for review & approval 👀

ivywallet avatar Aug 23 '24 18:08 ivywallet

I also encountered this problem

TDYQ-Liu avatar Aug 23 '24 22:08 TDYQ-Liu

I'm on it

shamim-emon avatar Aug 26 '24 12:08 shamim-emon

Thank you for your interest @shamim-emon! 🎉 Issue #3424 is assigned to you. You can work on it! ✅

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.

ivywallet avatar Aug 26 '24 12:08 ivywallet

@shamim-emon for the fix use the classes from #3396 - TimeConverter

ILIYANGERMANOV avatar Aug 26 '24 14:08 ILIYANGERMANOV

The default time of a new transaction is set to UTC instead of my time zone UTC+8 (time zone of my device has been set to UTC+8 already), and the app will be unable to deduct amount from the account if I change the time of transaction manually.

lch500 avatar Aug 30 '24 05:08 lch500

19:10(UTC+8), display 11:10

TDYQ-Liu avatar Aug 30 '24 11:08 TDYQ-Liu

Got it. I'll rework the EditTransactionViewModel to work with time properly

ILIYANGERMANOV avatar Aug 30 '24 11:08 ILIYANGERMANOV