Fix date command for busybox @zfLQ2qx2

Fix date command for busybox @zfLQ2qx2
This commit is contained in:
Toni de la Fuente
2021-01-13 21:19:07 +01:00
committed by GitHub

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() {