andcli
andcli copied to clipboard
Replace `date --rfc-3339=seconds` with macOS/BSD compatible equivalent
On macOS, running make ci
would give error message date: illegal option -- -
.
This is because date --rfc-3339=seconds
is exclusive to GNU date
.
On macOS/BSD systems, this is not supported by their variant of date
.
A suitable equivalent that works on both macOS/BSD and Linux is date "+%F %T%:z"
.