]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/User.php
Merge branch '2018.08-rc'
[friendica.git] / src / Model / User.php
index a43ef06f970619105a9cd8e29f84f86972697aa5..d65e7d8f9699e41aabadb406bd3034bd7da2266f 100644 (file)
@@ -730,7 +730,7 @@ class User
                DBA::insert('userd', ['username' => $user['nickname']]);
 
                // The user and related data will be deleted in "cron_expire_and_remove_users" (cronjobs.php)
-               DBA::update('user', ['account_removed' => true, 'account_expires_on' => DateTimeFormat::utc($t . " + 7 day")], ['uid' => $uid]);
+               DBA::update('user', ['account_removed' => true, 'account_expires_on' => DateTimeFormat::utc(DateTimeFormat::utcNow() . " + 7 day")], ['uid' => $uid]);
                Worker::add(PRIORITY_HIGH, "Notifier", "removeme", $uid);
 
                // Send an update to the directory