]> git.proxmox.com Git - mirror_acme.sh.git/commit - acme.sh
BSD fix _time2str()
authorJesse Miller <jmiller@jmiller.com>
Wed, 25 Jul 2018 03:32:38 +0000 (22:32 -0500)
committerJesse Miller <jmiller@jmiller.com>
Wed, 25 Jul 2018 03:41:01 +0000 (22:41 -0500)
commitcb11580981bf67058257da90a165a441558f0ac1
tree4fb248136d9e79e0cf2380055747b1f8958d7404
parent411b342a2758c4a2e75b519453fcd8be3730f78d
BSD fix _time2str()

date -u -d@"12345" does not produce an error on *BSD and outputs the
current date in UTC, which is not the expected output from _time2str()

Fix, reorder _time2str() to attempt BSD style date first, which
errors on Linux, so cascade style OS detection works correctly.
acme.sh