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() {
24 protected function getControlInstructions() {
26 'Select the format you prefer for editing dates.');
29 public function getSettingDefaultValue() {
30 return self
::VALUE_FORMAT_ISO
;
33 protected function getSelectOptions() {
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'),