4👍
✅
The label must be a string. Build up $timeIntervals
this way…
$timeIntervals = $timeIntervals . '"' . $timeInterval . '",';
…in order to have the date-time values wrapped between double quotes.
Source:stackexchange.com