From 564694c2f1799174fdf914f08d0ca9d8d2325c32 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sat, 17 May 2008 16:14:11 -0400 Subject: use cast object for datetimes darcs-hash:20080517201411-84dde-7a6195517a5bded7b84266f61c035e2adbc49edd.gz --- actions/newnotice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actions/newnotice.php') 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(); } -- cgit v1.2.3-54-g00ecf