Chartjs-ChartJS Generate Date Format

0👍

The problem is your locale. here is a nice fiddle to demonstrate the problem: fiddle

The starting date given is 2021-11-16T00:00:00.000-22:00 but the first item on the graph shows the next day at midnight. This is because we gave the "-22:00" locale to our date parser. if you give it "-08:00" we get 8 AM on the same day, so we are a bit closer to the correct value. If i give no locale to the parser, i get the correct locale automatically, but i guess you need to give the correct locale manually, or you have the wrong locale set on your machine.

Leave a comment