From ca6442f7f01d5188c2303e523c09c4eb05781637 Mon Sep 17 00:00:00 2001 From: Martin Konecny Date: Wed, 15 May 2013 17:18:52 -0400 Subject: [PATCH] ensure we are parsing in base 10 --- airtime_mvc/public/js/airtime/dashboard/dashboard.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/airtime_mvc/public/js/airtime/dashboard/dashboard.js b/airtime_mvc/public/js/airtime/dashboard/dashboard.js index 9df1e7494..5725d7b62 100644 --- a/airtime_mvc/public/js/airtime/dashboard/dashboard.js +++ b/airtime_mvc/public/js/airtime/dashboard/dashboard.js @@ -183,8 +183,8 @@ function updatePlaybar(){ /* Get rid of the millisecond accuracy so that the second counters for both * show and song change at the same time. */ - var songStartRoughly = parseInt(Math.round(currentSong.songStartPosixTime/1000))*1000; - var songEndRoughly = parseInt(Math.round(currentSong.songEndPosixTime/1000))*1000; + var songStartRoughly = parseInt(Math.round(currentSong.songStartPosixTime/1000), 10)*1000; + var songEndRoughly = parseInt(Math.round(currentSong.songEndPosixTime/1000), 10)*1000; $('#time-elapsed').text(convertToHHMMSS(approximateServerTime - songStartRoughly)); $('#time-remaining').text(convertToHHMMSS(songEndRoughly - approximateServerTime));