DATE_FMT="%Y-%m-%d %T +0000"
SOURCE_DATE_EPOCH="${SOURCE_DATE_EPOCH:-$(date +s)}"
date=$(TZ=GMT0 date --date="@$SOURCE_DATE_EPOCH" "+$DATE_FMT" 2>/dev/null
||
date -u -r "$SOURCE_DATE_EPOCH" "+$DATE_FMT" 2>/dev/null || date -u
"+$DATE_FMT")
I doubt that's right - at least on Fedora, /usr/bin/date doesn't work that
way....
Um, isn't /usr/bin/date on Fedora GNU date? If so, shouldn't the --date
option work?
Well, first off - last I heard we support nmh on more than just Linux.
Geez, Valdis, did you _read_ the link I sent along with this message??!?!
So, the "date +s" was typo on my part (I did say that I didn't test it),
but I kind of thought that obviously should have been "+%s". But AFAICT
the other date commands all work on their respective operating systems.
--Ken
--
nmh-workers
https://lists.nongnu.org/mailman/listinfo/nmh-workers