From a36dd5a8b9e5046d9d6113771c483c1eaa3a057f Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 18 Mar 2021 14:47:37 +0000 Subject: adjust timezone after the expiration check --- Zotlabs/Module/Admin/Accounts.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Zotlabs/Module') diff --git a/Zotlabs/Module/Admin/Accounts.php b/Zotlabs/Module/Admin/Accounts.php index 22c2e5b10..d4a632901 100644 --- a/Zotlabs/Module/Admin/Accounts.php +++ b/Zotlabs/Module/Admin/Accounts.php @@ -196,10 +196,6 @@ class Accounts { $pending[$n]['reg_atip'] = $v['reg_atip'] . ' ◄' . $atipn[ $v['reg_atip'] ] . '×'; } - $pending[$n]['reg_created'] = datetime_convert('UTC', date_default_timezone_get(), $pending[$n]['reg_created']); - $pending[$n]['reg_startup'] = datetime_convert('UTC', date_default_timezone_get(), $pending[$n]['reg_startup']); - $pending[$n]['reg_expires'] = datetime_convert('UTC', date_default_timezone_get(), $pending[$n]['reg_expires']); - $pending[$n]['status'] = t('Not yet verified'); if($pending[$n]['reg_vfd']) $pending[$n]['status'] = t('Verified'); @@ -207,6 +203,10 @@ class Accounts { if($pending[$n]['reg_expires'] < datetime_convert()) $pending[$n]['status'] = t('Expired'); + $pending[$n]['reg_created'] = datetime_convert('UTC', date_default_timezone_get(), $pending[$n]['reg_created']); + $pending[$n]['reg_startup'] = datetime_convert('UTC', date_default_timezone_get(), $pending[$n]['reg_startup']); + $pending[$n]['reg_expires'] = datetime_convert('UTC', date_default_timezone_get(), $pending[$n]['reg_expires']); + // better secure $tao .= $n . ": '" . substr(bin2hex($v['reg_hash']),0,8) . "',"; $_SESSION[self::MYP]['h'][] = substr($v['reg_hash'],0,4); -- cgit v1.2.3