From 2f46eef24b4de9e5025b984c41c2718af2e5cd2c Mon Sep 17 00:00:00 2001 From: Benoit Sagols Date: Sat, 11 Jan 2020 01:45:00 +0700 Subject: [PATCH] Add support for macOS catalina date --- tests/test-lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test-lib.sh b/tests/test-lib.sh index 79d58f8e..adf3d272 100644 --- a/tests/test-lib.sh +++ b/tests/test-lib.sh @@ -500,7 +500,7 @@ test_init_todo () { #date: illegal option -- - #usage: date [-jnu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ... #[-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format] - elif date --version 2>&1 | grep -q -e "-jnu"; then + elif date --version 2>&1 | grep -q -e "-jnR\?u"; then DATE_STYLE=Mac10.5 # on Mac OS X 10.4: #date --version