Skip to content

Commit

Permalink
Merge pull request #13 from JackieDo/master
Browse files Browse the repository at this point in the history
Fix whitespace char
  • Loading branch information
JackieDo authored Jun 7, 2020
2 parents e28abfd + 84ea7bc commit 18418d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Jackiedo/Timezonelist/Timezonelist.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ protected function formatTimezone($timezone, $continent, $htmlencode=true)
$timezone = str_replace('St_', 'St. ', $timezone);
$timezone = str_replace('_', ' ', $timezone);

$formatted = '(GMT/UTC' . $offset . ')' . self::WHITESPACE_SEP . $timezone;
$formatted = '(GMT/UTC' . $offset . ')' . ($htmlencode ? self::WHITESPACE_SEP : ' ') . $timezone;
return $formatted;
}

Expand Down

0 comments on commit 18418d8

Please sign in to comment.