Removed time zone auto detection (#1025)

* Removed time zone auto-detection

* Update usercp_register.tpl

* Updated

* Update usercp_register.tpl

* Update usercp_register.tpl

* Update usercp_register.tpl

* Update usercp_register.tpl

* Update usercp_register.tpl
This commit is contained in:
Roman Kelesidis 2023-11-03 18:28:42 +07:00 committed by GitHub
commit 671446e089
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 13 additions and 52 deletions

View file

@ -82,22 +82,6 @@ switch ($mode) {
$datastore->rm('moderators');
break;
case 'change_tz':
$tz = (int)$this->request['tz'];
if ($tz < -12) {
$tz = -12;
}
if ($tz > 13) {
$tz = 13;
}
if ($tz != $bb_cfg['board_timezone']) {
// Set current user timezone
DB()->query("UPDATE " . BB_USERS . " SET user_timezone = $tz WHERE user_id = " . $userdata['user_id']);
$bb_cfg['board_timezone'] = $tz;
\TorrentPier\Sessions::cache_rm_user_sessions($userdata['user_id']);
}
break;
case 'get_traf_stats':
$user_id = (int)$this->request['user_id'];
$btu = get_bt_userdata($user_id);