mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 08:52:39 +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:
parent
f61a02e342
commit
c9b7cffa4f
1 changed files with 4 additions and 3 deletions
|
@ -20,7 +20,8 @@ class PhabricatorPeopleListController extends PhabricatorPeopleController {
|
||||||
|
|
||||||
public function processRequest() {
|
public function processRequest() {
|
||||||
$request = $this->getRequest();
|
$request = $this->getRequest();
|
||||||
$is_admin = $request->getUser()->getIsAdmin();
|
$viewer = $request->getUser();
|
||||||
|
$is_admin = $viewer->getIsAdmin();
|
||||||
|
|
||||||
$user = new PhabricatorUser();
|
$user = new PhabricatorUser();
|
||||||
|
|
||||||
|
@ -53,8 +54,8 @@ class PhabricatorPeopleListController extends PhabricatorPeopleController {
|
||||||
}
|
}
|
||||||
|
|
||||||
$rows[] = array(
|
$rows[] = array(
|
||||||
phabricator_date($user->getDateCreated(), $user),
|
phabricator_date($user->getDateCreated(), $viewer),
|
||||||
phabricator_time($user->getDateCreated(), $user),
|
phabricator_time($user->getDateCreated(), $viewer),
|
||||||
phutil_render_tag(
|
phutil_render_tag(
|
||||||
'a',
|
'a',
|
||||||
array(
|
array(
|
||||||
|
|
Loading…
Reference in a new issue