diff options
author | Mario <mario@mariovavti.com> | 2021-03-17 14:37:16 +0100 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-03-17 14:37:16 +0100 |
commit | febf766be0ecd2a50aa8842a90a23dc23763e373 (patch) | |
tree | 71c190cf28b8ea616be865003c937df6f7a7f160 /Zotlabs/Module/Register.php | |
parent | 35d9fd4860f1f60150dc9f3ee91d7485c8325d77 (diff) | |
download | volse-hubzilla-febf766be0ecd2a50aa8842a90a23dc23763e373.tar.gz volse-hubzilla-febf766be0ecd2a50aa8842a90a23dc23763e373.tar.bz2 volse-hubzilla-febf766be0ecd2a50aa8842a90a23dc23763e373.zip |
air: make sure we always save date_time in UTC - issue #1544
Diffstat (limited to 'Zotlabs/Module/Register.php')
-rw-r--r-- | Zotlabs/Module/Register.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Zotlabs/Module/Register.php b/Zotlabs/Module/Register.php index b2b72bba1..38bfd1619 100644 --- a/Zotlabs/Module/Register.php +++ b/Zotlabs/Module/Register.php @@ -302,11 +302,11 @@ class Register extends Controller { $cfgdelay = get_config( 'system', 'register_delay' ); $regdelay = calculate_adue( $cfgdelay ); - $regdelay = $regdelay ? $regdelay['due'] : $now; + $regdelay = $regdelay ? datetime_convert(date_default_timezone_get(), 'UTC', $regdelay['due']) : $now; $cfgexpire = get_config('system','register_expire' ); $regexpire = calculate_adue( $cfgexpire ); - $regexpire = $regexpire ? $regexpire['due'] : datetime_convert('UTC', 'UTC', 'now + 99 years'); + $regexpire = $regexpire ? datetime_convert(date_default_timezone_get(), 'UTC', $regexpire['due']) : datetime_convert('UTC', 'UTC', 'now + 99 years'); // handle an email request that will be verified or an ivitation associated with an email address if ( $email > '' && ($email_verify || $icdone) ) { @@ -361,9 +361,9 @@ class Register extends Controller { dbesc($didx), dbesc($did2), dbesc($pass2), - dbesc(datetime_convert('','',$now)), - dbesc(datetime_convert('','',$regdelay)), - dbesc(datetime_convert('','',$regexpire)), + dbesc($now), + dbesc($regdelay), + dbesc($regexpire), dbesc($email), dbesc(bin2hex($password)), dbesc(substr(get_best_language(),0,2)), |