From: Anna Sobiepanek Date: Thu, 1 Jul 2010 21:57:25 +0000 (-0400) Subject: added to scotts #60 X-Git-Tag: v0.1~51 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=3dd8821db9a0244a71f94a1a23cd5863fd02e5d9;p=popcorn-js.git added to scotts #60 --- diff --git a/popcorn.js b/popcorn.js index 5838d51..8c79a89 100644 --- a/popcorn.js +++ b/popcorn.js @@ -91,9 +91,9 @@ } else if (t.length === 2) { return parseFloat(t[0], 10) + parseFloat(t[1] / 12, 10); } else if (t.length === 3) { - return parseInt(t[0] * 60, 10) + parseFloat(t[1], 10) + parseFloat(t[2] / 30, 10); + return parseInt(t[0] * 60, 10) + parseFloat(t[1], 10) + parseFloat(t[2] / 12, 10); } else if (t.length === 4) { - return parseInt(t[0] * 3600, 10) + parseInt(t[1] * 60, 10) + parseFloat(t[2], 10) + parseFloat(t[3] / 30, 10); + return parseInt(t[0] * 3600, 10) + parseInt(t[1] * 60, 10) + parseFloat(t[2], 10) + parseFloat(t[3] / 12, 10); } };