You are not logged in.
I'm using tree to generate some lists but I would like to have the DTS to have times displayed in UTC, not my local time zone.
tree -DC -T "Heading" -H "title" --charset=utf8 --timefmt "%b %d %R" -o test.html
This gives the output times in 24 h notation but with my timezone offset. I can't figure out how to get it to output with no offset, i.e. using UTC.
Last edited by graysky (2011-12-09 22:05:29)
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
If tree really uses strftime, then it will honor the TZ environment var. Just prefix the command with TZ=UTC.
This. It's also mentioned in the tree man page, under the ENVIRONMENT section..
Offline
Got it! Have to export TZ=UTC for it to work.
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline