ISO 8601 Date and Time Format ➶

I was having trouble with links and articles appearing out of order when published here due to a missing ZULU time offset in post date metadata.

This led me into a rabbit hole where I found there is an inconsistency in macOS’ current Unix date command, with a colon missing in the UTC Coordinated Universal Time offset.

Anyways, here’s the platform-independent (Linux/Mac/Windows), almost fully ISO 8601 date compliant code, which made things work:

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

Thank you, interwebs hivemind.

✶ Thursday, 28 September 2023


· ˖ ✦ . ˳

Possibly Related:

˳ · ˖

Prior entry:
Next entry: