I have a field of a table in schema.yml this:
data_inscricao:
type: TIMESTAMP
required: true
I used the command 'symfony propel-13-generate-crud' to generate the admin, but the Time is not being saved. I reviewed the code and saw that the problem in this part of actions.class.php:
if ($this->getRequestParameter('datetime_message'))
{
list($d, $m, $y) = sfI18N::getDateForCulture($this->getRequestParameter('datetime_message'), $this->getUser()->getCulture());
$test->setDatetimeMessage("$y-$m-$d");
}
The sfI18N::getDateForCulture() only returns the date, not the time.
This has been reviewed in the forum: http://www.symfony-project.com/forum/index.php/m/22357/
The solution, I believe be creating 'sfI18N:getDateTimeForCulture()' that supports DateTime?. Added an pacth based on the topic of the forum.