]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
merged in ticket #60
authorDaniel Hodgin <hodgin.daniel@gmail.com>
Thu, 1 Jul 2010 21:40:58 +0000 (17:40 -0400)
committerDaniel Hodgin <hodgin.daniel@gmail.com>
Thu, 1 Jul 2010 21:40:58 +0000 (17:40 -0400)
popcorn.js

index 5838d513eddf34f40e5b006f8a1aff3f5f730966..8c79a8937c49d638b4f29f767eb8cd7980797026 100644 (file)
@@ -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);
     }
   };