diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-05-17 16:14:11 -0400 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-05-17 16:14:11 -0400 |
commit | 564694c2f1799174fdf914f08d0ca9d8d2325c32 (patch) | |
tree | 27dc682968bbf29984517690d1bde57949f06081 /actions/avatar.php | |
parent | a88e18e5af2383f209fada762721a06488749d7f (diff) |
use cast object for datetimes
darcs-hash:20080517201411-84dde-7a6195517a5bded7b84266f61c035e2adbc49edd.gz
Diffstat (limited to 'actions/avatar.php')
-rw-r--r-- | actions/avatar.php | 4 |
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; } |