Преглед изворни кода

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