]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix error induced by timezone offset
authorPeter Palfrader <peter@palfrader.org>
Sun, 13 Jan 2008 00:26:44 +0000 (00:26 +0000)
committerPeter Palfrader <peter@palfrader.org>
Sun, 13 Jan 2008 00:26:44 +0000 (00:26 +0000)
svn:r13124

contrib/nagios-check-tor-authority-cert

index 15a6a9603bf5fdb472bd81176660123bbea3777e..d55dfa33a6990a1f99f2edc7fe041017c0732f54 100755 (executable)
@@ -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