Skip to content

Commit

Permalink
Fixed issue #18045: User details last login is not shown completed (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrieljenik committed May 19, 2022
1 parent 9b41232 commit d91bdcc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions application/models/User.php
Expand Up @@ -724,7 +724,8 @@ function ($oRoleMapping) {
}

/**
* @todo Not used?
* Returns the last login formatted for displaying.
* @return string
*/
public function getLastloginFormatted()
{
Expand All @@ -734,7 +735,7 @@ public function getLastloginFormatted()
}

$date = new DateTime($lastLogin);
return $date->format($this->dateformat) . ' ' . $date->format('H:i');
return $date->format($this->getDateFormat()) . ' ' . $date->format('H:i');
}

public function getManagementCheckbox()
Expand Down

0 comments on commit d91bdcc

Please sign in to comment.