Why do I have June when the month is 05 in the new Date format? I’m struggling in PHP to take 1 away from every month in order to get the accurate month on the graphe, any idea? My regex did `XXXX, XX – 1, XX’ rather than directly having -1 in the number…
(My regex :
preg_replace('/^(\\d+)-(\\d+)-(\\d+)$/', '\\1, \\2 - 1, \\3 - 1', $point['date_value']))
PS: It does the same to the days because there is the same problem.