@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.

Make custom "date" field feed stories human-readable

Summary: Fixes T10130.

Test Plan: {F1060142}

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T10130

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

+36
+36
src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldDate.php
··· 191 191 } 192 192 } 193 193 194 + public function getApplicationTransactionTitleForFeed( 195 + PhabricatorApplicationTransaction $xaction) { 196 + 197 + $viewer = $this->getViewer(); 198 + 199 + $author_phid = $xaction->getAuthorPHID(); 200 + $object_phid = $xaction->getObjectPHID(); 201 + 202 + $old = $xaction->getOldValue(); 203 + $new = $xaction->getNewValue(); 204 + 205 + if (!$old) { 206 + return pht( 207 + '%s set %s to %s on %s.', 208 + $xaction->renderHandleLink($author_phid), 209 + $this->getFieldName(), 210 + phabricator_datetime($new, $viewer), 211 + $xaction->renderHandleLink($object_phid)); 212 + } else if (!$new) { 213 + return pht( 214 + '%s removed %s on %s.', 215 + $xaction->renderHandleLink($author_phid), 216 + $this->getFieldName(), 217 + $xaction->renderHandleLink($object_phid)); 218 + } else { 219 + return pht( 220 + '%s changed %s from %s to %s on %s.', 221 + $xaction->renderHandleLink($author_phid), 222 + $this->getFieldName(), 223 + phabricator_datetime($old, $viewer), 224 + phabricator_datetime($new, $viewer), 225 + $xaction->renderHandleLink($object_phid)); 226 + } 227 + } 228 + 229 + 194 230 public function shouldAppearInConduitTransactions() { 195 231 // TODO: Dates are complicated and we don't yet support handling them from 196 232 // Conduit.