1
0
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:
Jean Paul Galea 2015-07-24 14:35:30 +02:00
parent 342ceac544
commit 6181abee14

View File

@ -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)),
)); ));