]> git.llucax.com Git - mecon/meconlib.git/commitdiff
(no commit message)
authorMartín Marrese <marrese@gmail.com>
Tue, 10 Jun 2003 19:39:44 +0000 (19:39 +0000)
committerMartín Marrese <marrese@gmail.com>
Tue, 10 Jun 2003 19:39:44 +0000 (19:39 +0000)
HTML/php/QuickForm/mdate.php

index d1aa84d7f986f8daf1694dbd49b7fb4b8ab3684f..4fe0e426fb5687cbed92e4cd2c1eb90c058d07f7 100644 (file)
@@ -98,7 +98,12 @@ class HTML_QuickForm_mdate extends HTML_QuickForm_date
      */
     function &getValue()
     {
-        return new Date (sprintf("%04d/%02d/%02d 00:00:00",$this->_selectedDate['Y'],$this->_selectedDate['F'],$this->_selectedDate['d']));
+        if ($this->_selectedDate['Y'] != 00) {
+            return new Date (sprintf("%04d-%02d-%02d 00:00:00",$this->_selectedDate['Y'],$this->_selectedDate['F'],$this->_selectedDate['d']));
+        } 
+        else {
+            return null;
+        }
     } // end func _createNumericOptionList
 }
 ?>