You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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 the2024-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 usesnew 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?The text was updated successfully, but these errors were encountered: