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

Data not respecting timestamp #80

Open
LucasCoderT opened this issue Oct 31, 2024 · 0 comments
Open

Data not respecting timestamp #80

LucasCoderT opened this issue Oct 31, 2024 · 0 comments

Comments

@LucasCoderT
Copy link

LucasCoderT commented Oct 31, 2024

Hey,

So I am currently implementing this library and I am seeing an issue where the data is being plotted in the wrong date range.

In my PSQL database, I have an item with a timestamp as: 2024-10-30 20:17:10.356258 +00:00 But on the chart, it's under the 2024-10-29 day.

Edit:
Upon further investigation it seems that the library will generate y axies as utc timestamps of midnight. However when that timestamp is read by nvd3 It uses new Date(x) Which uses the browsers local timezone. So for me being -6, it will show the 29th with 1 item, not the 30th. Is this intentional?

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

No branches or pull requests

1 participant