diff --git a/src/Jackiedo/Timezonelist/Timezonelist.php b/src/Jackiedo/Timezonelist/Timezonelist.php index 031608a..939e6e7 100644 --- a/src/Jackiedo/Timezonelist/Timezonelist.php +++ b/src/Jackiedo/Timezonelist/Timezonelist.php @@ -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; }