Author: frisco
Date: 2007-06-12 16:49:18 -0700 (Tue, 12 Jun 2007)
New Revision: 5394

Modified:
   openlaszlo/branches/legals/lps/components/base/basedatepicker.lzx
Log:
Change 20070612-laszlosystems-U by [EMAIL PROTECTED] on 2007-06-12 16:09:08 PDT
    in /Users/laszlosystems/src/svn/openlaszlo/branches/legals
    for http://svn.openlaszlo.org/openlaszlo/branches/legals

Summary: Leap year check in basedatepicker improved (years divisible by 100 are 
only leap years when divisible by 400)

New Features:

Bugs Fixed: LPP-3330

Technical Reviewer: jgrandy (over my shoulder)
QA Reviewer: (pending)
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details:
    

Tests:



Modified: openlaszlo/branches/legals/lps/components/base/basedatepicker.lzx
===================================================================
--- openlaszlo/branches/legals/lps/components/base/basedatepicker.lzx   
2007-06-12 22:43:49 UTC (rev 5393)
+++ openlaszlo/branches/legals/lps/components/base/basedatepicker.lzx   
2007-06-12 23:49:18 UTC (rev 5394)
@@ -297,10 +297,11 @@
                            of days for.
               @keywords protected -->
         <method name="getNumberOfDaysInMonth" args="month,year"> 
+            <![CDATA[ 
             var returnValue;
 
             if( month == 1 ) {
-                if ((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0) 
 {
+                if (((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 
0))  {
                     returnValue = 29;
                 } else {
                     returnValue = 28;
@@ -310,6 +311,7 @@
             } 
            
             return returnValue; 
+            ]]>
         </method> 
 
         <!--- This method is called when a key goes up from the basedatepicker


_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins

Reply via email to