I've moved to fluxbox as my default environment on our corporate environment. I obviously can't change the time on the machine. But I'd like the clock to show my local time instead of the machine's local time.
Any way that can be achieved?
I've moved to fluxbox as my default environment on our corporate environment. I obviously can't change the time on the machine. But I'd like the clock to show my local time instead of the machine's local time.
Any way that can be achieved?
To expand slightly upon @frostschutz comment, the TZ environment variable is present in large part to allow exactly what you desire: having programs show you time information in your preferred zone.
Indeed, Unix system clocks all run on UTC (GMT-like) and things like file timestamps and what your clock program gets back from the system is in UTC. Programs like ls and your clock program usually look to the system default timezone (often stored in /etc/localtime) unless the TZ environment variable is set.
The program tzselect helps you choose the proper time zone and shows you how to change your .profile to set TZ. It doesn't actually make any changes for you.
Based on the info provided by @msw and @frostschutz, I added the following line in my ~/.fluxbox/startup file before the line calling exec fluxbox:
export TZ=Asia/Jerusalem
This did the trick, thanks all for your help and fun comments.