Skip to content

Commit 709f1e7

Browse files
author
neil
committed
fix for omnios-r151052
1 parent 0c2d7b9 commit 709f1e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

acme.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1811,11 +1811,11 @@ _date2time() {
18111811
return
18121812
fi
18131813
#Omnios
1814-
if python3 -c "import datetime; print(int(datetime.datetime.strptime(\"$1\", \"%Y-%m-%d %H:%M:%S\").timestamp()))" 2>/dev/null; then
1814+
if python3 -c "import datetime; print(int(datetime.datetime.strptime(\"$1\", \"%Y-%m-%d %H:%M:%S\").replace(tzinfo=datetime.timezone.utc).timestamp()))" 2>/dev/null; then
18151815
return
18161816
fi
18171817
#Omnios
1818-
if python3 -c "import datetime; print(int(datetime.datetime.strptime(\"$1\", \"%Y-%m-%dT%H:%M:%SZ\").timestamp()))" 2>/dev/null; then
1818+
if python3 -c "import datetime; print(int(datetime.datetime.strptime(\"$1\", \"%Y-%m-%dT%H:%M:%SZ\").replace(tzinfo=datetime.timezone.utc).timestamp()))" 2>/dev/null; then
18191819
return
18201820
fi
18211821
_err "Cannot parse _date2time $1"

0 commit comments

Comments
 (0)