1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-19 03:50:54 +01:00

Correctly localize times in the user list

Summary: We currently show a user's signup time in //their// local time, not the
viewer's local time. Oops!
Test Plan: Looked at user list.
Reviewed By: tuomaspelkonen
Reviewers: toulouse, jungejason, tuomaspelkonen, aran
CC: aran, epriestley, tuomaspelkonen
Differential Revision: 585
This commit is contained in:
epriestley 2011-07-03 12:36:43 -07:00
parent f61a02e342
commit c9b7cffa4f

View file

@ -20,7 +20,8 @@ class PhabricatorPeopleListController extends PhabricatorPeopleController {
public function processRequest() {
$request = $this->getRequest();
$is_admin = $request->getUser()->getIsAdmin();
$viewer = $request->getUser();
$is_admin = $viewer->getIsAdmin();
$user = new PhabricatorUser();
@ -53,8 +54,8 @@ class PhabricatorPeopleListController extends PhabricatorPeopleController {
}
$rows[] = array(
phabricator_date($user->getDateCreated(), $user),
phabricator_time($user->getDateCreated(), $user),
phabricator_date($user->getDateCreated(), $viewer),
phabricator_time($user->getDateCreated(), $viewer),
phutil_render_tag(
'a',
array(