Page MenuHomePhabricator

D18067.diff
No OneTemporary

D18067.diff

diff --git a/src/applications/diffusion/view/DiffusionHistoryListView.php b/src/applications/diffusion/view/DiffusionHistoryListView.php
--- a/src/applications/diffusion/view/DiffusionHistoryListView.php
+++ b/src/applications/diffusion/view/DiffusionHistoryListView.php
@@ -23,15 +23,12 @@
'PhabricatorHarbormasterApplication',
$this->getUser());
- $rows = array();
- $ii = 0;
- $cur_date = 0;
- $header = null;
+ $cur_date = null;
$view = array();
foreach ($this->getHistory() as $history) {
$epoch = $history->getEpoch();
- $new_date = date('Ymd', $history->getEpoch());
- if ($cur_date != $new_date) {
+ $new_date = phabricator_date($history->getEpoch(), $viewer);
+ if ($cur_date !== $new_date) {
$date = ucfirst(
phabricator_relative_date($history->getEpoch(), $viewer));
$header = id(new PHUIHeaderView())

File Metadata

Mime Type
text/plain
Expires
Sat, Jan 11, 9:58 PM (21 h, 13 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6985682
Default Alt Text
D18067.diff (911 B)

Event Timeline