Skip to content

Commit 5a6a4e7

Browse files
author
Dale Sikkema
committed
MAGETWO-35338: Magento completely breaks up when set specific locale
- use ALL list in Timezone validation
1 parent 7b9d7bd commit 5a6a4e7

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Config/Model/Config/Backend/Locale

1 file changed

+1
-1
lines changed

app/code/Magento/Config/Model/Config/Backend/Locale/Timezone.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Timezone extends \Magento\Framework\App\Config\Value
1919
*/
2020
public function beforeSave()
2121
{
22-
if (!in_array($this->getValue(), \DateTimeZone::listIdentifiers(\DateTimeZone::ALL_WITH_BC))) {
22+
if (!in_array($this->getValue(), \DateTimeZone::listIdentifiers(\DateTimeZone::ALL))) {
2323
throw new LocalizedException(__('Please correct the timezone.'));
2424
}
2525
return $this;

0 commit comments

Comments
 (0)