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/newnotice.php | |
parent | a88e18e5af2383f209fada762721a06488749d7f (diff) |
use cast object for datetimes
darcs-hash:20080517201411-84dde-7a6195517a5bded7b84266f61c035e2adbc49edd.gz
Diffstat (limited to 'actions/newnotice.php')
-rw-r--r-- | actions/newnotice.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actions/newnotice.php b/actions/newnotice.php index 50d676eb5..fa7badd3d 100644 --- a/actions/newnotice.php +++ b/actions/newnotice.php @@ -47,8 +47,8 @@ class NewnoticeAction extends Action { $notice = DB_DataObject::factory('notice'); assert($notice); $notice->profile_id = $user->id; # user id *is* profile id + $notice->created = DB_DataObject_Cast::dateTime(); $notice->content = $this->arg('content'); - $notice->created = date(DATE_RFC822); # current time return $notice->insert(); } |