mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-20 13:52:40 +01:00
Updated Phrequent "Time Tracked" page to show time in Started / Ended columns.
Summary: Small update that shows time as well as date on the Time Tracked page, which is important given that durations are likely to be less than a day. Test Plan: Apply the patch and view the "Time Tracked" page under Phrequent. Reviewers: epriestley CC: aran, Korvin Maniphest Tasks: T2857 Differential Revision: https://secure.phabricator.com/D5482
This commit is contained in:
parent
e555b9025f
commit
4a5dfd3819
1 changed files with 2 additions and 2 deletions
|
@ -66,7 +66,7 @@ final class PhrequentListController extends PhrequentController {
|
|||
|
||||
if ($usertime->getDateEnded() !== null) {
|
||||
$time_spent = $usertime->getDateEnded() - $usertime->getDateStarted();
|
||||
$time_ended = phabricator_date($usertime->getDateEnded(), $user);
|
||||
$time_ended = phabricator_datetime($usertime->getDateEnded(), $user);
|
||||
} else {
|
||||
$time_spent = time() - $usertime->getDateStarted();
|
||||
$time_ended = phutil_tag(
|
||||
|
@ -101,7 +101,7 @@ final class PhrequentListController extends PhrequentController {
|
|||
'href' => $usertime_user->getURI()
|
||||
),
|
||||
$usertime_user->getFullName()),
|
||||
phabricator_date($usertime->getDateStarted(), $user),
|
||||
phabricator_datetime($usertime->getDateStarted(), $user),
|
||||
$time_ended,
|
||||
$time_spent == 0 ? 'none' :
|
||||
phabricator_format_relative_time_detailed($time_spent),
|
||||
|
|
Loading…
Reference in a new issue