Ensure compatibility to BSD date

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2017-06-20 10:38:09 +02:00
parent 947766d2df
commit 59f2dff906
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -65,7 +65,7 @@ EOF
if [ $? -eq 0 ]; then
info "[${KEY_NAME}] Should be loaded by now."
vault-patch --log-level=warn secret/ssh-key/${KEY_NAME} last_used=$(date -Iseconds)
vault-patch --log-level=warn secret/ssh-key/${KEY_NAME} last_used=$(date +%Y-%m-%dT%H:%M:%S%z)
else
error "[${KEY_NAME}] Was not added successfully."
fi