From 4a5dfd3819043df93557f3278280e6bd9072f79e Mon Sep 17 00:00:00 2001 From: James Rhodes Date: Sat, 30 Mar 2013 09:33:30 -0700 Subject: [PATCH] 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 --- .../phrequent/controller/PhrequentListController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/applications/phrequent/controller/PhrequentListController.php b/src/applications/phrequent/controller/PhrequentListController.php index eb1e6b548f..bb1ea82129 100644 --- a/src/applications/phrequent/controller/PhrequentListController.php +++ b/src/applications/phrequent/controller/PhrequentListController.php @@ -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),