Skip to content
Browse files

Pass radix to parseInt. (Sorry, Crock.)

  • Loading branch information...
1 parent 1f1b8b3 commit 21a3a2b11ca9e4cb9dde1ac5fe5b702cbe5a533f @jimmycuadra committed Nov 3, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 source/javascripts/core.js.coffee
View
4 source/javascripts/core.js.coffee
@@ -3,8 +3,8 @@ window.ph = {}
HAML.globals = ->
{
formatTime: (ticks) ->
- hours = parseInt(ticks / 3600)
- minutes = parseInt((ticks / 60) % 60)
+ hours = parseInt(ticks / 3600, 10)
+ minutes = parseInt((ticks / 60) % 60, 10)
seconds = ticks % 60
minutes = "0#{minutes}" if minutes < 10

0 comments on commit 21a3a2b

Please sign in to comment.
Something went wrong with that request. Please try again.