File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 "
You can’t perform that action at this time.
0 commit comments