File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
app/code/Magento/Config/Model/Config/Backend/Locale
lib/internal/Magento/Framework/Locale
setup/src/Magento/Setup/Model Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ class Timezone extends \Magento\Framework\App\Config\Value
19
19
*/
20
20
public function beforeSave ()
21
21
{
22
- if (!in_array ($ this ->getValue (), \DateTimeZone::listIdentifiers (\DateTimeZone::ALL_WITH_BC ))) {
22
+ if (!in_array ($ this ->getValue (), \DateTimeZone::listIdentifiers (\DateTimeZone::ALL ))) {
23
23
throw new LocalizedException (__ ('Please correct the timezone. ' ));
24
24
}
25
25
return $ this ;
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ public function getOptionTimezones()
103
103
{
104
104
$ options = [];
105
105
$ locale = $ this ->localeResolver ->getLocale ();
106
- $ zones = \DateTimeZone::listIdentifiers (\DateTimeZone::ALL_WITH_BC );
106
+ $ zones = \DateTimeZone::listIdentifiers (\DateTimeZone::ALL );
107
107
foreach ($ zones as $ code ) {
108
108
$ options [] = [
109
109
'label ' => \IntlTimeZone::createTimeZone ($ code )->getDisplayName (
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ public function __construct(ConfigInterface $localeConfig)
36
36
*/
37
37
public function getTimezoneList ()
38
38
{
39
- $ zones = \DateTimeZone::listIdentifiers (\DateTimeZone::ALL_WITH_BC );
39
+ $ zones = \DateTimeZone::listIdentifiers (\DateTimeZone::ALL );
40
40
$ list = [];
41
41
foreach ($ zones as $ code ) {
42
42
$ list [$ code ] = \IntlTimeZone::createTimeZone ($ code )->getDisplayName (
You can’t perform that action at this time.
0 commit comments