From 277551839b948ec1a7b6f74539d94559dbb832c6 Mon Sep 17 00:00:00 2001 From: Michael Osipov Date: Wed, 29 Mar 2023 08:36:49 +0200 Subject: [PATCH] Use locale-agnostic (ISO 8601) timestamp format (#2126) This fixes #2126 --- scripts/periodic/405.pkg-base-audit.in | 2 +- scripts/periodic/410.pkg-audit.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/periodic/405.pkg-base-audit.in b/scripts/periodic/405.pkg-base-audit.in index f38c1f8600..0a8d01a766 100644 --- a/scripts/periodic/405.pkg-base-audit.in +++ b/scripts/periodic/405.pkg-base-audit.in @@ -112,7 +112,7 @@ audit_base() { f="-F" else echo -n 'Database fetched: ' - date -r "${then}" || rc=3 + date -r "${then}" -Iminutes || rc=3 fi # cannot check kernel in jail or chroot diff --git a/scripts/periodic/410.pkg-audit.in b/scripts/periodic/410.pkg-audit.in index 624bcc94b8..b51750d99c 100755 --- a/scripts/periodic/410.pkg-audit.in +++ b/scripts/periodic/410.pkg-audit.in @@ -76,7 +76,7 @@ audit_pkgs() { ${pkgcmd} ${pkgargs} audit -F $q || { rc=$?; [ $rc -lt 3 ] && rc=3; } else echo -n 'Database fetched: ' - date -r "${then}" || rc=3 + date -r "${then}" -Iminutes || rc=3 ${pkgcmd} ${pkgargs} audit $q || { rc=$?; [ $rc -lt 3 ] && rc=3; } fi