Update index_data.php

This commit is contained in:
Roman Kelesidis 2023-12-14 17:26:58 +07:00
parent ba28da3951
commit 30854b3482

View File

@ -80,9 +80,8 @@ switch($mode)
break;
case 'change_tz':
$tz = (int) $this->request['tz'];
if ($tz < -12) $tz = -12;
if ($tz > 13) $tz = 13;
$tz = (float) $this->request['tz'];
if ($tz != $bb_cfg['board_timezone'])
{
// Set current user timezone