Skip to content

Commit

Permalink
"toLocaleFormat" is a firefox-ism
Browse files Browse the repository at this point in the history
  • Loading branch information
pdericson committed Dec 5, 2017
1 parent 5a86aa2 commit 7edc7d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion assets/js/socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ let table = null;
channel.on("events", payload => {

$(payload.events).each(function(index, event) {
event.time = new Date(event.time * 1000).toLocaleFormat('%H:%M:%S')
// pdericson "toLocaleFormat" is a firefox-ism
//event.time = new Date(event.time * 1000).toLocaleFormat('%H:%M:%S')
if (parseFloat(event.metric)) {
event.metric = parseFloat(event.metric.toFixed(6))
}
Expand Down

0 comments on commit 7edc7d9

Please sign in to comment.