ソースを参照

Fix error induced by timezone offset

svn:r13124
Peter Palfrader 17 年 前
コミット
af78168413
1 ファイル変更1 行追加1 行削除
  1. 1 1
      contrib/nagios-check-tor-authority-cert

+ 1 - 1
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