From 1d1951d4b0fef39904dd2327fbee16e9abec7e1c Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Tue, 8 Oct 2013 11:40:23 +0200 Subject: [PATCH] common_sql_now() is recommended --- classes/Profile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Profile.php b/classes/Profile.php index ffa5a46439..dacfb2ee92 100644 --- a/classes/Profile.php +++ b/classes/Profile.php @@ -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()) {