1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-03 05:07:27 +02:00

Infopanel - Using internal date function

Infopanel - Using internal date function
This commit is contained in:
MikeyGMT
2016-12-31 21:23:02 +00:00
parent 80c09697fa
commit c81732757e

View File

@@ -768,14 +768,16 @@ class adminstyle_infopanel
{ {
$data = array(); $data = array();
$data['labels'] = array(strftime("%B",mktime(0,0,0,01,01,16)), //"January", $months = e107::getDate()->terms('month');
strftime("%B",mktime(0,0,0,02,01,16)), //"February",
strftime("%B",mktime(0,0,0,03,01,16)), //"March", $data['labels'] = array($months[0], //"January",
strftime("%B",mktime(0,0,0,04,01,16)), //"April", $months[1], //"February",
strftime("%B",mktime(0,0,0,05,01,16)), //"May", $months[2], //"March",
strftime("%B",mktime(0,0,0,06,01,16)), //"June", $months[3], //"April",
strftime("%B",mktime(0,0,0,07,01,16)) //"July" $months[4], //"May",
); $months[5], //"June",
$months[6] //"July"
);
$data['datasets'][] = array( $data['datasets'][] = array(
'fillColor' => "rgba(220,220,220,0.5)", 'fillColor' => "rgba(220,220,220,0.5)",