mirror of
https://github.com/ghndrx/prowler.git
synced 2026-02-10 23:05:05 +00:00
Fix date command for busybox @zfLQ2qx2
Fix date command for busybox @zfLQ2qx2
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user