From af781684134feb6454547e1d3c7cbab5d42a10e3 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sun, 13 Jan 2008 00:26:44 +0000 Subject: [PATCH] Fix error induced by timezone offset svn:r13124 --- contrib/nagios-check-tor-authority-cert | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/nagios-check-tor-authority-cert b/contrib/nagios-check-tor-authority-cert index 15a6a9603b..d55dfa33a6 100755 --- a/contrib/nagios-check-tor-authority-cert +++ b/contrib/nagios-check-tor-authority-cert @@ -68,7 +68,7 @@ if ! [ -s "$TMPFILE" ] ; then fi expirydate="$(awk '$1=="dir-key-expires" {printf "%s %s", $2, $3}' < "$TMPFILE")" -expiryunix=$(date -d "$expirydate" +%s) +expiryunix=$(TZ=UTC date -d "$expirydate" +%s) now=$(date +%s) if [ "$now" -ge "$expiryunix" ]; then