From: <Se...@us...> - 2011-03-25 00:01:56
|
Revision: 5133 http://jaffa.svn.sourceforge.net/jaffa/?rev=5133&view=rev Author: SeanZ Date: 2011-03-25 00:01:50 +0000 (Fri, 25 Mar 2011) Log Message: ----------- use round in decimal2hmm(); this should be the same as in hmm2decimal(). Modified Paths: -------------- trunk/JaffaRIA/source/html/js/extjs/jaffa/util/Converter.js Modified: trunk/JaffaRIA/source/html/js/extjs/jaffa/util/Converter.js =================================================================== --- trunk/JaffaRIA/source/html/js/extjs/jaffa/util/Converter.js 2011-03-23 23:58:01 UTC (rev 5132) +++ trunk/JaffaRIA/source/html/js/extjs/jaffa/util/Converter.js 2011-03-25 00:01:50 UTC (rev 5133) @@ -13,7 +13,7 @@ return '0:00'; } var h = Math.floor(v); - var m = String(Math.floor((v - h) * 60)); + var m = String(Math.round((v - h) * 60)); return h + ':' + (m.length == 2 ? m : '0' + m); }, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |