Use phabricator_ time functions in more places
Summary: Replace some more date() calls with locale-aware calls. Also, at least on my system, the DateTimeZone / DateTime stuff didn't actually work and always rendered in UTC. Fixed that. Test Plan: Viewed daemon console, differential revisions, files, and maniphest timestamps in multiple timezones. Reviewed By: toulouse Reviewers: toulouse, fratrik, jungejason, aran, tuomaspelkonen CC: aran, toulouse Differential Revision: 530
This commit is contained in:
@@ -59,7 +59,8 @@ class PhabricatorDaemonLogViewController extends PhabricatorDaemonController {
|
||||
->appendChild(
|
||||
id(new AphrontFormStaticControl())
|
||||
->setLabel('Started')
|
||||
->setValue(date('F jS, Y g:i:s A', $log->getDateCreated())))
|
||||
->setValue(
|
||||
phabricator_datetime($log->getDateCreated(), $user)))
|
||||
->appendChild(
|
||||
id(new AphrontFormTextAreaControl())
|
||||
->setLabel('Argv')
|
||||
@@ -73,6 +74,7 @@ class PhabricatorDaemonLogViewController extends PhabricatorDaemonController {
|
||||
$content[] = $panel;
|
||||
|
||||
$event_view = new PhabricatorDaemonLogEventsView();
|
||||
$event_view->setUser($user);
|
||||
$event_view->setEvents($events);
|
||||
|
||||
$log_panel = new AphrontPanelView();
|
||||
|
||||
Reference in New Issue
Block a user