Revision: 4370 http://vexi.svn.sourceforge.net/vexi/?rev=4370&view=rev Author: jeffbuhrt Date: 2012-03-19 18:34:35 +0000 (Mon, 19 Mar 2012) Log Message: ----------- Fix for #65, DayFromMonth expects a 0 based month vs 1 based!
Modified Paths: -------------- trunk/org.vexi-library.js/src/main/jpp/org/ibex/js/ECMADate.jpp Modified: trunk/org.vexi-library.js/src/main/jpp/org/ibex/js/ECMADate.jpp =================================================================== --- trunk/org.vexi-library.js/src/main/jpp/org/ibex/js/ECMADate.jpp 2012-03-16 22:56:34 UTC (rev 4369) +++ trunk/org.vexi-library.js/src/main/jpp/org/ibex/js/ECMADate.jpp 2012-03-19 18:34:35 UTC (rev 4370) @@ -617,7 +617,8 @@ leap = (DaysInYear((int) year) == 366); yearday = java.lang.Math.floor(TimeFromYear(year) / msPerDay); - monthday = DayFromMonth((int) month, leap); + // DayFromMonth expects a 0 based month + monthday = DayFromMonth((int) month-1, leap); result = yearday + monthday This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Vexi-svn mailing list Vexi-svn@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vexi-svn