Home Forums Chart Support Displaying incorrect date time while converting epoch value Reply To: Displaying incorrect date time while converting epoch value

#25306

@akarsh5080,

Epoch timestamp is in seconds whereas JavaScript uses milliseconds as timestamp. Converting epoch timestamp to JavaScript timestamp before passing it to chart should work fine in your case. You can convert epoch timestamp to JavaScript timestmap by multiplying epoch timestamp by 1000. $javaScriptTimestamp = $epochTimestamp * 1000; Please refer this stackoverflow thread for more information on the same.


Vishwas R
Team CanvasJS