phpBMS

Changeset 228 for trunk/phpbms/common

Show
Ignore:
Timestamp:
04/06/07 15:42:10 (5 years ago)
Author:
brieb
Message:

Implements #109

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/phpbms/common/javascript/common.js

    r225 r228  
    240240                                if(year<100) year+=2000; 
    241241                        break; 
     242                        case "Dutch, NL": 
     243                                sep="-"; 
     244                                day=parseInt(sDate.substring(0,sDate.indexOf(sep)),10); 
     245                                month=parseInt(sDate.substring(sDate.indexOf(sep)+1,sDate.indexOf(sep,sDate.indexOf(sep)+1)),10)-1; 
     246                                year=parseInt(sDate.substring(sDate.lastIndexOf(sep)+1),10); 
     247                                if(year<100) year+=2000; 
     248                        break; 
    242249                } 
    243250                thedate=new Date(year,month,day); 
     
    276283                        case "English, UK": 
    277284                                sep="/"; 
     285                                month=thedate.getMonth()+1; 
     286                                if(month<10) month="0"+month; 
     287                                day=thedate.getDate(); 
     288                                if(day<10) day="0"+day;                                  
     289                                sdate= day+sep+month+sep+thedate.getFullYear(); 
     290                        break; 
     291                         
     292                        case "Dutch, NL": 
     293                                sep="-"; 
    278294                                month=thedate.getMonth()+1; 
    279295                                if(month<10) month="0"+month; 
phpBMS vulnerability assesment provided by Orvant Inc. Copyright © 2010 Kreotek, LLC. All Rights reserved.