how to get local date & time in linux terminal while server configured in UTC or different timezone?
here is what I get now but I'd like to see in local timezone. For eg: PST/PDT.
[jenkins@myServer ~]$ date
Thu Jul 28 18:16:48 UTC 2016
TZ environment variable to pass the desired timezone to
You can find the available timezones in the
/usr/share/zoneinfo/ directory and subdirectories. For example,
$ date Fri Jul 29 06:31:53 BDT 2016 $ TZ='America/New_York' date Thu Jul 28 20:31:58 EDT 2016 $ TZ='America/Los_Angeles' date Thu Jul 28 17:31:54 PDT 2016