andcli icon indicating copy to clipboard operation
andcli copied to clipboard

Replace `date --rfc-3339=seconds` with macOS/BSD compatible equivalent

Open elliotwutingfeng opened this issue 1 year ago • 0 comments

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".

References

elliotwutingfeng avatar Feb 26 '24 05:02 elliotwutingfeng