Open nagpai opened 4 months ago
@nagpai this issue is quite vague and hard to action. How can we make it clearer and more actionable?
Here's my understanding:
List_Transactions
class in plugin adjusts date filter values to user's timezone:List_Deposits
, List_Disputes
, and List_Documents
all don't convert timezone:List_Transactions
should pass time values through as-is.
List_Transactions
, what UI or behaviour is affected, is it "broken"?
Describe the bug
( This is a WIP draft. Details and links are yet to be plugged in ) The transaction cache on the server saves time stamps in UTC.
The transactions list in reports (
Payment > Transactions
) and all other reports that use it ( e.g. Payment activity widget ), shows the time in the website time zone.The filter queries, that are in the same website time zone, are eventually converted to UTC while querying the transaction cache. We however see this is done in a complex way where there is also user's local browser time zone involved.
We need to explore if getting the user's browser time zone is indeed required, or if there is a scope to simplify this further.
Additional context
view report
link on the widget.