Skip to content

Commit

Permalink
Merge remote-tracking branch 'extensibility/MAGETWO-35338-use-all-lis…
Browse files Browse the repository at this point in the history
…t' into PR_Branch
  • Loading branch information
Olga Kopylova committed Mar 20, 2015
2 parents a70745a + 5a6a4e7 commit 992d8ae
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Timezone extends \Magento\Framework\App\Config\Value
*/
public function beforeSave()
{
if (!in_array($this->getValue(), \DateTimeZone::listIdentifiers(\DateTimeZone::ALL_WITH_BC))) {
if (!in_array($this->getValue(), \DateTimeZone::listIdentifiers(\DateTimeZone::ALL))) {
throw new LocalizedException(__('Please correct the timezone.'));
}
return $this;
Expand Down
2 changes: 1 addition & 1 deletion lib/internal/Magento/Framework/Locale/Lists.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public function getOptionTimezones()
{
$options = [];
$locale = $this->localeResolver->getLocale();
$zones = \DateTimeZone::listIdentifiers(\DateTimeZone::ALL_WITH_BC);
$zones = \DateTimeZone::listIdentifiers(\DateTimeZone::ALL);
foreach ($zones as $code) {
$options[] = [
'label' => \IntlTimeZone::createTimeZone($code)->getDisplayName(
Expand Down
2 changes: 1 addition & 1 deletion setup/src/Magento/Setup/Model/Lists.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function __construct(ConfigInterface $localeConfig)
*/
public function getTimezoneList()
{
$zones = \DateTimeZone::listIdentifiers(\DateTimeZone::ALL_WITH_BC);
$zones = \DateTimeZone::listIdentifiers(\DateTimeZone::ALL);
$list = [];
foreach ($zones as $code) {
$list[$code] = \IntlTimeZone::createTimeZone($code)->getDisplayName(
Expand Down

0 comments on commit 992d8ae

Please sign in to comment.