mirror of
https://github.com/Yubico/yubikey-val.git
synced 2025-02-27 06:54:16 +01:00
Refactor.
- strftime -> date. - strftime is same as date, but with locales. - date format doesn't output names (January, March, etc.), so locale doesn't matter. - also, would we really want locale in logs?
This commit is contained in:
parent
342ceac544
commit
6181abee14
@ -450,7 +450,7 @@ if ($sessionCounter == $seenSessionCounter && $sessionUse > $seenSessionUse)
|
|||||||
'delta' => $tsDiff,
|
'delta' => $tsDiff,
|
||||||
'secs' => $tsDelta,
|
'secs' => $tsDelta,
|
||||||
'accessed' => sprintf('%s (%s)', $lastTime, $ad['accessed']),
|
'accessed' => sprintf('%s (%s)', $lastTime, $ad['accessed']),
|
||||||
'now' => sprintf('%s (%s)'. $now, strftime('%Y-%m-%d %H:%M:%S', $now)),
|
'now' => sprintf('%s (%s)'. $now, date('%Y-%m-%d %H:%M:%S', $now)),
|
||||||
'elapsed' => $elapsed,
|
'elapsed' => $elapsed,
|
||||||
'deviation' => sprintf('%s secs or %s%%', $deviation, round(100 * $percent)),
|
'deviation' => sprintf('%s secs or %s%%', $deviation, round(100 * $percent)),
|
||||||
));
|
));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user