Skip to content

Commit

Permalink
Merge pull request #5 from nathan-io:patch-2
Browse files Browse the repository at this point in the history
Fix undefined variable in toArray() method
  • Loading branch information
jessedp authored Jun 14, 2020
2 parents e2e8296 + 9078471 commit 7e0907c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Timezones/Timezones.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ public function toArray()
}

// Add all timezone of the regions to return
foreach ($this->continents as $continent => $mask) {
foreach ($this->regions as $continent => $mask) {
$timezones = DateTimeZone::listIdentifiers($mask);
foreach ($timezones as $timezone) {
$list[$continent][$timezone] = $this->formatTimezone($timezone, $continent);
Expand Down

0 comments on commit 7e0907c

Please sign in to comment.