@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix Phame Post creation time

Summary: I spent way to long to arrive at this solution. Ref T9360

Test Plan: Publish a new post, see time, unpublish post, see draft. Start a new post, wait 10 minutes, publish, see "now".

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Maniphest Tasks: T9360

Differential Revision: https://secure.phabricator.com/D14656

+3 -3
+1 -1
src/applications/phame/controller/post/PhamePostEditController.php
··· 146 146 id(new AphrontFormSelectControl()) 147 147 ->setLabel(pht('Visibility')) 148 148 ->setName('visibility') 149 - ->setvalue($visibility) 149 + ->setValue($visibility) 150 150 ->setOptions(PhameConstants::getPhamePostStatusMap())) 151 151 ->appendChild( 152 152 id(new PhabricatorRemarkupControl())
+1 -1
src/applications/phame/editor/PhamePostEditor.php
··· 67 67 if ($xaction->getNewValue() == PhameConstants::VISIBILITY_DRAFT) { 68 68 $object->setDatePublished(0); 69 69 } else { 70 - $object->setDatePublished(time()); 70 + $object->setDatePublished(PhabricatorTime::getNow()); 71 71 } 72 72 return $object->setVisibility($xaction->getNewValue()); 73 73 }
+1 -1
src/applications/phame/storage/PhamePost.php
··· 34 34 ->setBloggerPHID($blogger->getPHID()) 35 35 ->setBlogPHID($blog->getPHID()) 36 36 ->setBlog($blog) 37 - ->setDatePublished(0) 37 + ->setDatePublished(PhabricatorTime::getNow()) 38 38 ->setVisibility(PhameConstants::VISIBILITY_PUBLISHED); 39 39 return $post; 40 40 }