Commit b521b494 authored by beberlei's avatar beberlei

DDC-179 - Fixed issue with persistance of date fields by moving ! operator to...

DDC-179 - Fixed issue with persistance of date fields by moving ! operator to the convertToPhpValue method.
parent 0a9876b2
......@@ -1719,7 +1719,7 @@ abstract class AbstractPlatform
*/
public function getDateFormatString()
{
return '!Y-m-d';
return 'Y-m-d';
}
/**
......
......@@ -30,6 +30,6 @@ class DateType extends Type
public function convertToPHPValue($value, AbstractPlatform $platform)
{
return ($value !== null)
? \DateTime::createFromFormat($platform->getDateFormatString(), $value) : null;
? \DateTime::createFromFormat('!'.$platform->getDateFormatString(), $value) : null;
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment