Skip to content
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

[bug] Plotted dates differ between different PC time zones #84

Closed
andreas-it-dev opened this issue Jun 20, 2019 · 3 comments · Fixed by #88
Closed

[bug] Plotted dates differ between different PC time zones #84

andreas-it-dev opened this issue Jun 20, 2019 · 3 comments · Fixed by #88
Milestone

Comments

@andreas-it-dev
Copy link

andreas-it-dev commented Jun 20, 2019

issue seems to be timezone related, please skip to #84 (comment) and #84 (comment)

Lightweight Charts Version:
1.0.0 RC5
Steps/code to reproduce:

load data from json url and plot the chart

Actual behavior:

right now my json api delivers this data:

[
...snip...
{"time":"2019-06-13","open":31.69,"high":33.32,"low":31.41,"close":33.09},
{"time":"2019-06-14","open":32.97,"high":33.2,"low":32.22,"close":32.68},
{"time":"2019-06-17","open":32.1,"high":32.92,"low":32.1,"close":32.56},
{"time":"2019-06-18","open":32.78,"high":33.3,"low":32.42,"close":32.52}
]

the chart however, shows all the dates substracted by 1 day(?)

Expected behavior:

it should plot the chart dates like its input.
Screenshots

see screenshot of the actual chart to the data pasted above:

image

thank you,
Andreas

@andreas-it-dev
Copy link
Author

andreas-it-dev commented Jun 23, 2019

there def is an issue and it seems to be timezone related.. and it even affects monthly charts..(!?)

when i load the page with my PC set to Eastern Standard Time (my default setting), i see the monthly candle for june presented as may (wrong):

image

when i set my PC clock to CEST and refresh the page it shows the same data but this time the candle is presented to me as the june candle (correct):

image

please take a look at it as its pretty confusing.

thanks,
Andreas

@andreas-it-dev
Copy link
Author

fwiw and completeness sake, here are the daily charts as well:

CEST with correct dates:

image

EST with incorrect dates:

image

@andreas-it-dev andreas-it-dev changed the title [bug] Plotted dates differ from json input data by 1 day [bug] Plotted dates differ between different PC time zones Jun 23, 2019
@kirchet kirchet mentioned this issue Jun 25, 2019
3 tasks
@ezhukovskiy ezhukovskiy added this to the 1.0.0 milestone Jun 26, 2019
@timocov
Copy link
Contributor

timocov commented Jul 8, 2019

The version 1.0.0 is just published.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants