Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / settings / setting / PhabricatorTimeFormatSetting.php
blob6fafa4e9a1f311afc4c55254c9b959d000c07826
1 <?php
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() {
20 return 300;
23 protected function getControlInstructions() {
24 return pht(
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() {
33 return array(
34 self::VALUE_FORMAT_12HOUR => pht('12 Hour, 2:34 PM'),
35 self::VALUE_FORMAT_24HOUR => pht('24 Hour, 14:34'),