Snippets

Create an account or login to be able to add, comment and rate snippets.

Navigation

How to set time with a timestamp db field with doctrine

$dateFormat = new sfDateFormat();
$value = $dateFormat->format(time(), 'I');
$user->set('last_login',$value);
by hansbricks on 2007-04-05, tagged doctrine  timestamp 
You need to create an account or log in to post a comment or rate this snippet.