[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r13124: Fix error induced by timezone offset (tor/trunk/contrib)



Author: weasel
Date: 2008-01-12 19:26:44 -0500 (Sat, 12 Jan 2008)
New Revision: 13124

Modified:
   tor/trunk/contrib/nagios-check-tor-authority-cert
Log:
Fix error induced by timezone offset

Modified: tor/trunk/contrib/nagios-check-tor-authority-cert
===================================================================
--- tor/trunk/contrib/nagios-check-tor-authority-cert	2008-01-13 00:21:08 UTC (rev 13123)
+++ tor/trunk/contrib/nagios-check-tor-authority-cert	2008-01-13 00:26:44 UTC (rev 13124)
@@ -68,7 +68,7 @@
 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