LSformElement_date : Fixed parsing date problem with some formats
authorBenjamin Renard <brenard@easter-eggs.com>
Fri, 24 Jun 2011 15:32:38 +0000 (17:32 +0200)
committerBenjamin Renard <brenard@easter-eggs.com>
Fri, 24 Jun 2011 15:32:38 +0000 (17:32 +0200)
public_html/includes/js/LSformElement_date_field.js

index 413bd83..fac4bbd 100644 (file)
@@ -26,6 +26,7 @@ var LSformElement_date_field = new Class({
           this.params.format = "%d/%m/%Y";
         }
       }
+      Date.defineParser(this.params.format);
 
       this.calendar = new DatePicker(this.input, {
           format: this.params.format,