diff options
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/nagios-check-tor-authority-cert | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/nagios-check-tor-authority-cert b/contrib/nagios-check-tor-authority-cert index 15a6a9603..d55dfa33a 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 |