I have access to a Debian server, but not as root (so the solution I aim for should work for normal users without su or sudo steps).
I have a shell function which eventually prints the date and time with:
Code:
date '+%F %T %:z'
# Result is like: 2016-09-05 18:21:38 +02:00
# I wanted it to be the same, but in my timezone:
# 2016-09-05 13:21:38 -03:00
My shell prompt in Bash also display the clock with seconds: PS1="[...] \t [...]". The prompt is like:
Code:
18:36:16 me@server:~/some/folder/tmp
$
The problem is that me and the server are in different timezones. I want to see its clock, in both cases, in my timezone (so I can easily think about times here and/or there and so on).
The 'date' command does not seem to have an option for this. The shell prompt too?
Is it possible to solve both? What can I do?