CDateTimeParser can't parse MMM format of date


$format = Yii::app()->locale->getDateFormat('medium');

$value = Yii::app()->dateFormatter->format($format, time()); 

CVarDumper::dump($format);

CVarDumper::dump($value);


$timestamp = CDateTimeParser::parse($value,$format);

CVarDumper::dump($timestamp);

When i try specify on date validation to ‘medium’ format from locale it’s not work.

CDateTimeParser can’t parse ‘MMM d, y’ format.

please create an issue on github if you want this to be fixed.

https://github.com/yiisoft/yii/issues

Also please link it here if you’ve done so.

I’ve added the issue.