Z80-Retro / 2063-Z80-cpm

A flash boot-loader and cp/m 2.2 BIOS
GNU Lesser General Public License v2.1
41 stars 16 forks source link

Use a more portable date construct. #23

Closed thorpej closed 3 months ago

thorpej commented 5 months ago

The command:

date --rfc-3339=seconds

is a GNU extension. A much more portable date comamnd:

date +"%Y-%m-%d %H:%M:%S%z"

uses common strftime(3) format specifiers, works on Linux, BSD, and macOS, and produces output nearly identical to the first form (differs only in the lack of a colon between the hours and minutes of the timezone offset field).

Fixes Issue #22.

johnwinans commented 5 months ago

This repo needs to be adjusted a bit. We shouldn't be merging into the main here. I'll make this happen when I am back at my bench.

johnwinans commented 3 months ago

I manually implemented this in the dev branch.