summaryrefslogtreecommitdiff
path: root/actions/avatar.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/avatar.php')
-rw-r--r--actions/avatar.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/actions/avatar.php b/actions/avatar.php
index 0b1025a3c..f378b3d15 100644
--- a/actions/avatar.php
+++ b/actions/avatar.php
@@ -123,7 +123,7 @@ class AvatarAction extends SettingsAction {
$avatar->filename = $filename;
$avatar->original = true;
$avatar->url = common_avatar_url($filename);
- $avatar->created = date(DATE_RFC822); # current time
+ $avatar->created = DB_DataObject_Cast::dateTime(); # current time
foreach (array(AVATAR_PROFILE_SIZE, AVATAR_STREAM_SIZE, AVATAR_MINI_SIZE) as $size) {
$scaled[] = $this->scale_avatar($user, $avatar, $size);
}
@@ -181,7 +181,7 @@ class AvatarAction extends SettingsAction {
$scaled->mediatype = ($avatar->mediattype == 'image/jpeg') ? 'image/jpeg' : 'image/png';
$scaled->filename = $filename;
$scaled->url = common_avatar_url($filename);
- $scaled->created = date(DATE_RFC822); # current time
+ $scaled->created = DB_DataObject_Cast::dateTime(); # current time
return $scaled;
}