Permalink
Browse files

Fixed parsing of timestamps. parseFloat instead of parseInt

  • Loading branch information...
1 parent bc17301 commit 09e0873ef8800193e43c4cb19f02e551a3180980 Dillion committed Feb 2, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 media_timestamp.js
View
@@ -5,7 +5,7 @@ jQuery(document).ready(function() {
function convertTimestampToTime(timestampString)
{
var hms = timestampString.split(',')[0].split(':');
- return parseInt(hms[2]) + 60*parseInt(hms[1]) + 3600*parseInt(hms[0]);
+ return parseInt(hms[2]) + 60*parseFloat(hms[1]) + 3600*parseFloat(hms[0]);
}
// use a slight delay to make sure everything else has executed already

0 comments on commit 09e0873

Please sign in to comment.