diff options
author | Mario <mario@mariovavti.com> | 2021-03-18 14:47:37 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-03-18 14:47:37 +0000 |
commit | a36dd5a8b9e5046d9d6113771c483c1eaa3a057f (patch) | |
tree | 3aee5ff29556c227ba7e1273301b9b515f13fc1a /Zotlabs/Module/Admin/Accounts.php | |
parent | 7c620cbe244aac5cce5d86bd3776ca85353e7f74 (diff) | |
download | volse-hubzilla-a36dd5a8b9e5046d9d6113771c483c1eaa3a057f.tar.gz volse-hubzilla-a36dd5a8b9e5046d9d6113771c483c1eaa3a057f.tar.bz2 volse-hubzilla-a36dd5a8b9e5046d9d6113771c483c1eaa3a057f.zip |
adjust timezone after the expiration check
Diffstat (limited to 'Zotlabs/Module/Admin/Accounts.php')
-rw-r--r-- | Zotlabs/Module/Admin/Accounts.php | 8 |
1 files changed, 4 insertions, 4 deletions
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); |