]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix bad dates in API's JSON search results
authorZach Copley <zach@controlyourself.ca>
Mon, 13 Apr 2009 22:03:34 +0000 (15:03 -0700)
committerEvan Prodromou <evan@controlyourself.ca>
Tue, 14 Apr 2009 20:02:26 +0000 (16:02 -0400)
lib/jsonsearchresultslist.php

index 0cdcf0c51642bfec6081c7e8ed8a5d16313c29bc..f786c20a806ed53c3c55cff6eb9c0cbe0367dad5 100644 (file)
@@ -232,7 +232,7 @@ class ResultItem
         $this->profile_image_url = ($avatar) ?
             $avatar->displayUrl() : Avatar::defaultImage(AVATAR_STREAM_SIZE);
 
-        $this->created_at = date('r', $this->notice->created);
+        $this->created_at = common_date_rfc2822($this->notice->created);
     }
 
     /**