Revision: 4234 http://vexi.svn.sourceforge.net/vexi/?rev=4234&view=rev Author: jeffbuhrt Date: 2011-09-20 22:36:56 +0000 (Tue, 20 Sep 2011) Log Message: ----------- Now sets Year, Month, then Day... seems to be a widget (core?) problem when the last use month was a 28 or less day month, then the date is set to day 29. (Even if the underlying problem was found, it makes sense someone else's trap might expect the same thing.) [Sometimes a date in a table was fine other cases a 08/29/2011 became 08/01/2011.]
Modified Paths: -------------- trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/util/date.t Modified: trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/util/date.t =================================================================== --- trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/util/date.t 2011-09-17 23:49:31 UTC (rev 4233) +++ trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/util/date.t 2011-09-20 22:36:56 UTC (rev 4234) @@ -287,20 +287,20 @@ s0 = s0 ? vexi.string.parseInt(s0, 10) : d.getMonth(); s1 = s1 ? vexi.string.parseInt(s1, 10) : d.getDay(); s2 = s2 ? expandYear(s2) : d.getFullYear(); - o.day = s1; o.month = s0; o.year = s2; + o.year = s2; o.month = s0; o.day = s1; break; case "YYYYMMDD": s0 = s0 ? expandYear(s0) : d.getFullYear(); s1 = s1 ? vexi.string.parseInt(s1, 10) : d.getMonth(); s2 = s2 ? vexi.string.parseInt(s2, 10) : d.getDay(); - o.day = s2; o.month = s1; o.year = s0; + o.year = s0; o.month = s1; o.day = s2; break; case "DDMMYYYY": default: s0 = s0 ? vexi.string.parseInt(s0, 10) : d.getDay(); s1 = s1 ? vexi.string.parseInt(s1, 10) : d.getMonth(); s2 = s2 ? expandYear(s2) : d.getFullYear(); - o.day = s0; o.month = s1; o.year = s2; + o.year = s2; o.month = s1; o.day = s0; break; } return o; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 _______________________________________________ Vexi-svn mailing list Vexi-svn@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vexi-svn