Fix for busybox date command

This commit is contained in:
C.J
2021-01-12 09:11:52 -05:00
parent eac59cade8
commit bf1bd505c5

View File

@@ -109,7 +109,11 @@ bsd_get_iso8601_timestamp() {
}
gnu_convert_date_to_timestamp() {
date -d "$1" +%s
if [ "$OSTYPE" == "linux-musl" ]; then
date -D "%Y-%m-%dT%H:%M:%SZ" -d "$1" +%s
else
date -d "$1" +%s
fi
}
bsd_convert_date_to_timestamp() {