Skip to content

Commit

Permalink
fix some timezone issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Colinax committed Nov 2, 2021
1 parent ea6eeda commit a357357
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion wbce/account/confirm.php
Expand Up @@ -39,7 +39,7 @@
$sNewPasswordRaw = $oAccounts->GenerateRandomPassword();
$sNewPasswordEnc = $oAccounts->doPasswordEncode($sNewPasswordRaw);

$sReadableDateTime = date("Y-m-d H:i:s", time());
$sReadableDateTime = date("Y-m-d H:i:s", time() + DEFAULT_TIMEZONE);

if (isset($_GET['mng']) && $_GET['mng'] == intval(1)) {
if ($oAccounts->checkConfirmSum($_GET['sum'], $iUserID) == false) {
Expand Down
4 changes: 2 additions & 2 deletions wbce/admin/settings/send_testmail.php
Expand Up @@ -45,8 +45,8 @@
'WBMAILER_DEFAULT_SENDERNAME' => WBMAILER_DEFAULT_SENDERNAME,
'SERVER_EMAIL' => SERVER_EMAIL,
'WB_URL' => WB_URL,
'DATE' => date("d-m-Y"),
'TIME' => date("H:i:s"),
'DATE' => date("d-m-Y", time() + DEFAULT_TIMEZONE),
'TIME' => date("H:i:s", time() + DEFAULT_TIMEZONE),
);

// After check print the header
Expand Down

0 comments on commit a357357

Please sign in to comment.