Changeset 12203

Show
Ignore:
Timestamp:
01/29/08 14:08:22 (12 months ago)
Author:
peller
Message:

another small reduction. Refs #5716

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dojo/trunk/date/locale.js

    r12199 r12203  
    362362                                //TODO: just validate? 
    363363                                break; 
    364                         case 'd': 
    365                                 result[2] = v; 
    366                                 break; 
    367364                        case 'D': 
    368365                                result[1] = 0; 
     366                                // fallthrough... 
     367                        case 'd': 
    369368                                result[2] = v; 
    370369                                break; 
     
    387386                                break; 
    388387                        case 'K': //hour (1-24) 
    389                                 if(v==24){v=0;} 
     388                                if(v == 24){ v = 0; } 
    390389                                // fallthrough... 
    391390                        case 'h': //hour (1-12) 
     
    400399                                //in the 12-hour case, adjusting for am/pm requires the 'a' part 
    401400                                //which could come before or after the hour, so we will adjust later 
    402                                 result[3] =v; 
     401                                result[3] = v; 
    403402                                break; 
    404403                        case 'm': //minutes