Causing fluxbox to show a different time then the default timezone

clockfluxboxtimezone

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?

Best Answer

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.