Fix error induced by timezone offset

svn:r13124
This commit is contained in:
Peter Palfrader 2008-01-13 00:26:44 +00:00
parent 388b2f6221
commit af78168413

View File

@ -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