Closed IBPX closed 7 years ago
Yes, that’s seems to do the trick :)
This doesn't work with all implementations of the date
command.
BSD implementations don't have the -I
flag, it's probably a gnu coreutils thing, it's not required to be POSIX compatible.
@jomo In that case, it should be left as it was, date +%FT%T%:z
. That's an oversight on my part.
I believe
date +%FT%T%:z
is exactly the same as writingdate -Isecond
, just more complicated. They are both the same format, and you can run them at the same time and get the exact same result.Relevant section of
man date
: