Symfony / Propel - retrieving old dates from a database

onlyjatt

New Member
This is regarding Symfony 1.4, and probably all prior versions, running php 5.3, mysql 5.1.If I store old dates in a database < 1970..., and I then retrieve them, they are automatically converted into an incorrect date.Example table:\[code\]id, some_date1, 1961-09-09\[/code\]A quick example.\[code\]$record = MyTablePeer::retrieveByPK(1);echo $record->getSomeDate(); //returns: 09/09/61//Want it to return: 1961-09-09\[/code\]Where is the output format controlled from? I need to get the entire date with the entire year stored in the database.
 
Back
Top