mirror of
https://github.com/friendica/friendica
synced 2024-12-23 04:00:15 +00:00
Fix 2FA AppSpecificPassword
This commit is contained in:
parent
474c185294
commit
5f3421701f
1 changed files with 5 additions and 3 deletions
|
@ -86,9 +86,11 @@ class AppSpecificPassword
|
|||
$appSpecificPasswords = DBA::toArray($appSpecificPasswordsStmt);
|
||||
|
||||
array_walk($appSpecificPasswords, function (&$value) {
|
||||
$value['ago'] = Temporal::getRelativeDate($value['last_used']);
|
||||
$value['utc'] = DateTimeFormat::utc($value['last_used'], 'c');
|
||||
$value['local'] = DateTimeFormat::local($value['last_used'], 'r');
|
||||
$last_used = $value['last_used'] ?? DBA::NULL_DATETIME;
|
||||
|
||||
$value['ago'] = Temporal::getRelativeDate($last_used);
|
||||
$value['utc'] = DateTimeFormat::utc($last_used, 'c');
|
||||
$value['local'] = DateTimeFormat::local($last_used, 'r');
|
||||
});
|
||||
|
||||
return $appSpecificPasswords;
|
||||
|
|
Loading…
Reference in a new issue