Closed moolicc closed 5 months ago
Thanks for the bug report. Since I've seen such things on different projects I suspect a time zone problematic. I'll have a look at it.
Time zone math in js/ts is always fun (NOT).. I'm not sure how to navigate a Nextcloud plugin/app, but if you point me in the direction of the source where editing and/or adding items is done, I can give it a shot
Could you please send me the request data and the server response for the request which is sent when you change the date?
Also can you tell me in what time zone you are located? (If it's ok for you of course).
Fixed in 282e810bb4c02c822fc9e0db4b74cace35137d66
Sorry for the delay.. Been busy lately. Thanks for getting this fixed, my apologies for not being available to give you the other information you had asked for.
Okay so this doesn't seem to have fixed it entirely apparently.
I'm in the America/Chicago time zone, or Central Daylight Time currently (UTC-5).
After adding an expense, when I go to update the description on the row, after saving the row the date flips back a day, but I can't get this to reliably reproduce for the other columns in the row. Here are some screenshots of requests/responses from this test:
Adding the row:
Updating the row:
(I'm not sure what to call these, as firefox just reports their name as "58".
Note that I never changed the date in the UI, only the description.
I'll keep testing out different things and seeing if I can reproduce the behavior in other ways as well.
Here's a video of me flipping some fields on that row and the date only seems to be weird when I change the description
https://github.com/powerpaul17/nc_money/assets/28231505/01008f09-0364-4904-9d5a-e2749c364b56
And I am doing this testing at around 18:30 local time, which shouldn't even be rolling over to the next day if you add 5 hours to make it GMT.
Should be fixed now with e7fadcd0c0f126e2122d16c00f8aa5224aadc993. I'll run more tests and release it again soon.
Once again, thank you sir for a quick fix to this!
And thank you for the detailed information and the bug report. Apparently there weren't many users in different time zones because it didn't bother anyone up to now.. :wink:
Describe the bug When I add an item or edit the date on an existing item, when saved, the date always sets to a day prior to the selected date.
To Reproduce Steps to reproduce the behavior:
Expected behavior The date on the item is as it was selected.
Screenshots Even better, a short video :)
https://github.com/powerpaul17/nc_money/assets/28231505/a067d088-e9d5-4c3f-8eae-08646e058115
Nextcloud information (please complete the following information):
Desktop (please complete the following information):
Additional context Also shown in the above screen recording is an apparent issue with the UI margins for the items when it has to re-sort.