Weird Chart dates
Posted: Wed 01 Feb 2023 10:36 am
OK I have a really weird result in my Historical Charts for my Lightning data.
This is what is being returned in the chart.

As you can see the data goes from the 24th Sept to the 24th Dec. But the actual data on my database goes for 3 months up until 31st January (i.e. October 31st to January 31st) and the column of 32 strikes actually happened on the 11th January 2023 not the 4th December 2022.
I have ran the SQL Query used in the PHP manually on the database table and it returns all the data with the right dates see below.

Somehow (and for the life of me I cannot see how) the right data is getting moved 38 days backwards in time and given the incorrect dates. There is even the right number of columns after the 32 strikes on the chart to bring you to the 31st January (i.e. 20 days).
Anybody got any bright ideas as to how this may be happening?
This is what is being returned in the chart.

As you can see the data goes from the 24th Sept to the 24th Dec. But the actual data on my database goes for 3 months up until 31st January (i.e. October 31st to January 31st) and the column of 32 strikes actually happened on the 11th January 2023 not the 4th December 2022.
I have ran the SQL Query used in the PHP manually on the database table and it returns all the data with the right dates see below.

Somehow (and for the life of me I cannot see how) the right data is getting moved 38 days backwards in time and given the incorrect dates. There is even the right number of columns after the 32 strikes on the chart to bring you to the 31st January (i.e. 20 days).
Anybody got any bright ideas as to how this may be happening?