diff --git a/include/os_detector b/include/os_detector index 3d0cc2ee..67606660 100644 --- a/include/os_detector +++ b/include/os_detector @@ -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() {