3 final class PhabricatorTimeFormatSetting
4 extends PhabricatorSelectSetting
{
6 const SETTINGKEY
= 'time-format';
8 const VALUE_FORMAT_12HOUR
= 'g:i A';
9 const VALUE_FORMAT_24HOUR
= 'H:i';
11 public function getSettingName() {
12 return pht('Time Format');
15 public function getSettingPanelKey() {
16 return PhabricatorDateTimeSettingsPanel
::PANELKEY
;
19 protected function getSettingOrder() {
23 protected function getControlInstructions() {
25 'Select the format you prefer for editing and displaying time.');
28 public function getSettingDefaultValue() {
29 return self
::VALUE_FORMAT_12HOUR
;
32 protected function getSelectOptions() {
34 self
::VALUE_FORMAT_12HOUR
=> pht('12 Hour, 2:34 PM'),
35 self
::VALUE_FORMAT_24HOUR
=> pht('24 Hour, 14:34'),