blog.8-p.info

I used to use hugo undraft command but the subcommand was removed in 2018.

date '+date: %Y-%m-%dT%T%z' | sed -E 's/(..)$/:\1/g' | pbcopy

sed is needed since %z returns -0700 but TOML’s timezone offset has to be -07:00.