P
PaulB
Guest
\XF\Entity\User::verifyTimezone
uses the following logic in an attempt to filter out timezones that won't be accepted by DateTimeZone::__construct
:PHP:
Code:
$tzs = \DateTimeZone::listIdentifiers(\DateTimeZone::ALL_WITH_BC);
if (!in_array($timezone, $tzs))
{
$this->error(\XF::phrase('please_select_valid_time_zone'), 'timezone');
return false;
}
Unfortunately,
\DateTimeZone::listIdentifiers
can't be used to get a list of supported timezones. Without the...Read more
Continue reading...