mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Fix #1934 add 'default' option to domain timezone
This commit is contained in:
parent
a5f056284c
commit
59a1215c87
4 changed files with 14 additions and 9 deletions
|
|
@ -1154,7 +1154,7 @@ class adminAdminController extends admin
|
|||
|
||||
// Validate the default time zone.
|
||||
$timezone_list = Rhymix\Framework\DateTime::getTimezoneList();
|
||||
if (!isset($timezone_list[$vars->default_timezone]))
|
||||
if ($vars->default_timezone !== 'default' && !isset($timezone_list[$vars->default_timezone]))
|
||||
{
|
||||
throw new Rhymix\Framework\Exception('msg_invalid_timezone');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue