-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistent reporting for periods of time #449
Inconsistent reporting for periods of time #449
Comments
Solved using
It will be better if there is a way to set the time zone from host to docker container automatically. |
Today I found after applying time zone in |
Hello @uhliksk I can see that in the code sometimes we use |
Hello @habibalkhabbaz I think it can't be solved without sending current time zone settings from client to server or even from host to docker. For the server side it's better to keep it running on UTC and for the client side to see proper reports it will have to send not just "day", "week", "month" parameters, but exact date and time of the start and the end of period. This way the server will be always consistent in recording time of events and the only thing impacted by the client time zone will be the client side. |
@habibalkhabbaz I think I found the problem. The |
You are right! @uhliksk I think it's even better to save all dates in UTC format in the database so all dates will be consistent and we can just format it to our local time for displaying data. |
@habibalkhabbaz I found |
Version
v0.0.88 (9c2e4f5)
Description
When Day, Week or Month is selected as period to summarize closed trades there are inconsistent results between main screen and closed trades form because of main screen is reporting closed trades based on UTC time and closed trades form is reporting based on local time.
To Reproduce
Expected Behaviours
All reports should be done in local time.
Screenshots
Additional context
Optionally it can be reported on UTC time if it is easier to implement, but in any case reporting shoud be using the same time range across the application.
The text was updated successfully, but these errors were encountered: