mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
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:
parent
31d1cd87e7
commit
671446e089
6 changed files with 13 additions and 52 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue