common_sql_now() is recommended
This commit is contained in:
parent
9ddc40b6da
commit
1d1951d4b0
|
@ -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()) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user