Skip to content

Commit efd001b

Browse files
author
epriestley
committed
Wordsmith the timezone selection UX
Summary: Ref T3025. - Show current zone to make the current vs new more clear. - Tweak some text. Test Plan: {F1656534} Reviewers: chad Reviewed By: chad Maniphest Tasks: T3025 Differential Revision: https://secure.phabricator.com/D15965
1 parent 3d3fff4 commit efd001b

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

src/applications/settings/controller/PhabricatorSettingsTimezoneController.php

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,16 +81,24 @@ public function handleRequest(AphrontRequest $request) {
8181
$guess = 'ignore';
8282
}
8383

84+
$current_zone = $viewer->getTimezoneIdentifier();
85+
$current_zone = phutil_tag('strong', array(), $current_zone);
86+
8487
$form = id(new AphrontFormView())
88+
->appendChild(
89+
id(new AphrontFormMarkupControl())
90+
->setLabel(pht('Current Setting'))
91+
->setValue($current_zone))
8592
->appendChild(
8693
id(new AphrontFormSelectControl())
8794
->setName('timezone')
88-
->setLabel(pht('Timezone'))
95+
->setLabel(pht('New Setting'))
8996
->setOptions($options)
9097
->setValue($guess));
9198

9299
return $this->newDialog()
93100
->setTitle(pht('Adjust Timezone'))
101+
->setWidth(AphrontDialogView::WIDTH_FORM)
94102
->appendParagraph(
95103
pht(
96104
'Your browser timezone (%s) differs from your profile timezone '.
@@ -100,7 +108,7 @@ public function handleRequest(AphrontRequest $request) {
100108
$this->formatOffset($server_offset)))
101109
->appendForm($form)
102110
->addCancelButton(pht('Cancel'))
103-
->addSubmitButton(pht('Submit'));
111+
->addSubmitButton(pht('Change Timezone'));
104112
}
105113

106114
private function formatOffset($offset) {

src/view/page/PhabricatorStandardPageView.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ protected function willRenderPage() {
241241
'uri' => '/settings/timezone/',
242242
'message' => pht(
243243
'Your browser timezone setting differs from the timezone '.
244-
'setting in your profile.'),
244+
'setting in your profile, click to reconcile.'),
245245
'ignoreKey' => $ignore_key,
246246
'ignore' => $ignore,
247247
));

0 commit comments

Comments
 (0)