Cant replicate bar chart visualization results using emoncms api

I am having trouble replicating the bar chart visualization results using emoncms api. My results are off consistently off by 24 hours. Is there documentation on the specific calls that are used for the website bar charts that I can replicate.

https://emoncms.org/feed/data.json?apikey=[**api-key4e581bb9]&id=208025&start=1563163200000&end=1563249600000&mode=daily

Check all your date and time zones.

For me is was my Browser’s Date and Time Zone.
I couldn’t find where to set it in the browser, so I went to the php script on the EmonPi.
/var/www/emoncms/Modules/vis/visualisations/bargraph.php
‘’’
From:
xaxis: { mode: “time”, timezone: “browser”, min: view.start, max: view.end, minTickSize: [intervalrange, “second”] },

To:
xaxis: { mode: “time”, min: view.start, max: view.end, minTickSize: [intervalrange, “second”] },
‘’’

That is a great suggestion. Does the emoncms online app display the barchart in local time?

Have you set your local timezone? In Emoncms, under 'My Account` (top right) edit the timezone field.

Remember, the time in the API call must be the UTC equivalent of your local time.