From: Peter Palfrader Date: Sun, 13 Jan 2008 00:26:44 +0000 (+0000) Subject: Fix error induced by timezone offset X-Git-Tag: tor-0.2.0.16-alpha~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af781684134feb6454547e1d3c7cbab5d42a10e3;p=thirdparty%2Ftor.git Fix error induced by timezone offset svn:r13124 --- 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