Correct Aphlict websocket URI construction after PHP8 compatibility changes
[phabricator.git] / src / applications / settings / setting / PhabricatorDateFormatSetting.php
bloba6f5659bb4b56d6b2d559f08e677b9b0ecdbac37
1 <?php
3 final class PhabricatorDateFormatSetting
4 extends PhabricatorSelectSetting {
6 const SETTINGKEY = 'date-format';
8 const VALUE_FORMAT_ISO = 'Y-m-d';
9 const VALUE_FORMAT_US = 'n/j/Y';
10 const VALUE_FORMAT_EUROPE = 'd-m-Y';
12 public function getSettingName() {
13 return pht('Date Format');
16 public function getSettingPanelKey() {
17 return PhabricatorDateTimeSettingsPanel::PANELKEY;
20 protected function getSettingOrder() {
21 return 200;
24 protected function getControlInstructions() {
25 return pht(
26 'Select the format you prefer for editing dates.');
29 public function getSettingDefaultValue() {
30 return self::VALUE_FORMAT_ISO;
33 protected function getSelectOptions() {
34 return array(
35 self::VALUE_FORMAT_ISO => pht('ISO 8601: 2000-02-28'),
36 self::VALUE_FORMAT_US => pht('US: 2/28/2000'),
37 self::VALUE_FORMAT_EUROPE => pht('Europe: 28-02-2000'),