1
0
mirror of synced 2025-01-31 04:21:44 +03:00

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

This commit is contained in:
beberlei 2010-01-16 08:52:58 +00:00
parent 0a9876b2e8
commit b521b49402
2 changed files with 2 additions and 2 deletions

View File

@ -1719,7 +1719,7 @@ abstract class AbstractPlatform
*/
public function getDateFormatString()
{
return '!Y-m-d';
return 'Y-m-d';
}
/**

View File

@ -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;
}
}