From bf1bd505c5b4061b782d049334541b922f7490f3 Mon Sep 17 00:00:00 2001 From: "C.J" <31103058+zfLQ2qx2@users.noreply.github.com> Date: Tue, 12 Jan 2021 09:11:52 -0500 Subject: [PATCH] Fix for busybox date command --- include/os_detector | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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() {