My Highcharts chart gets data with ajax. Java web-service generates data as
list of objects, where time field looks like Jan 1, 1970 10:46:28 AM
.
After downloading this json data by ajax, the time looks like the int value 27988000
.
I want to properly show it on my x axis, so I need something like 10:46
values on my x axis.
My x axis description look like
xAxis: [{
crosshair: true,
type: 'datetime',
dateTimeLabelFormats : {
hour: '%b %e, %Y %H',
}
}],
but, unfortunately, it shows incorrect time (7:46:28
instead of 10:46:28
)
How can I solve this?