summaryrefslogtreecommitdiff
path: root/actions/newnotice.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-05-17 16:14:11 -0400
committerEvan Prodromou <evan@prodromou.name>2008-05-17 16:14:11 -0400
commit564694c2f1799174fdf914f08d0ca9d8d2325c32 (patch)
tree27dc682968bbf29984517690d1bde57949f06081 /actions/newnotice.php
parenta88e18e5af2383f209fada762721a06488749d7f (diff)
use cast object for datetimes
darcs-hash:20080517201411-84dde-7a6195517a5bded7b84266f61c035e2adbc49edd.gz
Diffstat (limited to 'actions/newnotice.php')
-rw-r--r--actions/newnotice.php2
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();
}