Thread: TBDev09 (2020)
View Single Post
  #34  
Old 1st January 2021, 01:53
chybber chybber is offline
Member
 
Join Date: Jan 2009
Default
Posts: 4
Default
Quote:
Originally Posted by DND View Post
Code:
$dst_in_use = localtime(time() + ((int)$time_offset * 3600) , true);
But show me your entire timezone block
Code:
if(isset($_POST["user_timezone"]) && preg_match('#^\-?\d{1,2}(?:\.\d{1,2})?$#', $_POST['user_timezone'])){
    $time_offset = sqlesc($_POST['user_timezone']);
    }else{
    $time_offset = isset($TBDEV['time_offset']) ? sqlesc($TBDEV['time_offset']) : '0';
}
    $dst_in_use = localtime(time() + ($time_offset * 3600),
that?
Reply With Quote