Change date format to set AutoLoginExpired correctly

This commit is contained in:
Cameron Bourgeois 2014-05-27 18:55:01 +12:00 committed by Will Rossiter
parent de09bffd84
commit 88ac537e96

View File

@ -611,7 +611,7 @@ class Member extends DataObject implements TemplateGlobalProvider {
)));
$this->AutoLoginHash = $hash;
$this->AutoLoginExpired = date('Y-m-d', time() + (86400 * $lifetime));
$this->AutoLoginExpired = date('Y-m-d H:i:s', time() + (86400 * $lifetime));
$this->write();