common_sql_now() is recommended

This commit is contained in:
Mikael Nordfeldth 2013-10-08 11:40:23 +02:00
parent 9ddc40b6da
commit 1d1951d4b0

View File

@ -135,7 +135,7 @@ class Profile extends Managed_DataObject
$avatar->filename = $filename;
$avatar->original = true;
$avatar->url = Avatar::url($filename);
$avatar->created = DB_DataObject_Cast::dateTime(); # current time
$avatar->created = common_sql_now();
// XXX: start a transaction here
if (!Avatar::deleteFromProfile($this, true) || !$avatar->insert()) {