如何在highcharts导航器中显示日期时间为'%b,%Y'而不是毫秒
SQL代码:
SELECT DATE_FORMAT(a1.date_time, '%d %b, %Y') AS dt_mon_yr,
(a4.ph1_active_energy)*10 - a1.ph1_active_energy AS 'ph1',
(a4.ph2_active_energy)*10 - a1.ph2_active_energy AS 'ph2',
(a4.ph3_active_energy)*10 - a1.ph3_active_energy AS 'ph3'
FROM powerpro a1
JOIN (SELECT DATE(date_time) date, MIN(date_time) AS min
FROM powerpro GROUP BY DATE(date_time)
) a2 ON a1.date_time = a2.min
JOIN (SELECT DATE(date_time) date, MIN(date_time) AS min
FROM powerpro GROUP BY DATE(date_time)
) a3 ON DATE(a1.date_time) = a3.date - INTERVAL 1 DAY
JOIN powerpro a4
ON a4.date_time = a3.min
WHERE DATE(a1.date_time) BETWEEN DATE_SUB(NOW(), INTERVAL 7 DAY) AND NOW() ORDER BY a1.date_time