Fix for Trac #569: Mandatory date (and time) fields are prefilled with the current date (and time).

SVN:trunk[2483]
This commit is contained in:
Denis Flaven
2012-11-30 10:51:15 +00:00
parent b563a64eb6
commit d69163199b
2 changed files with 10 additions and 2 deletions

View File

@@ -2384,7 +2384,7 @@ class AttributeEnum extends AttributeString
*/
class AttributeDateTime extends AttributeDBField
{
static protected function GetDateFormat()
static public function GetDateFormat()
{
return "Y-m-d H:i:s";
}
@@ -2692,7 +2692,7 @@ class AttributeDate extends AttributeDateTime
{
const MYDATEFORMAT = "Y-m-d";
static protected function GetDateFormat()
static public function GetDateFormat()
{
return "Y-m-d";
}