mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-20 10:12:15 +01:00
Fix error induced by timezone offset
svn:r13124
This commit is contained in:
parent
388b2f6221
commit
af78168413
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user