0

I connect my web server via SSH Terminal on Mac.

cat /var/www/vhosts/example.com/statistics/logs/error_log 

The Date of my server and local computer differs so output of error_logs is not efficient for me. Is it possible to change date output to my local time without modifying settings in server computer? The server date settings should stay same because another user is connecting from another part of world. I want to handle this automatically by Mac terminal if possible and just for me.

2

If you want to change the timezone for your logged in session,then you can export the TZ variable to your required timezone.

For example:

export TZ=US/Eastern
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.