FreeBSD: Overriding the System Timezone
I just stumbled on this. My e-mail server is in California, but I am in Chicago. However, I launched my current screen before we ran tzsetup on the server, so my IRC window and mutt were displaying times in GMT.
Now the server is displaying times in Pacific time. Yet for my login shells it is displaying in Central time. How?
1-10:29 djh@ratchet ~> grep TZ .tcshrc setenv TZ CST6CDT
Per tzset(3) you can set the TZ environment variable to a value in /usr/share/zoneinfo, which is what I did.
This is FreeBSD. YMMV on different Operating Systems. And of course, Apache will continue to display information for your web pages according to the system, unless you change the Apache user around.
Comment / Tip
. . . or leave a Tip
Danny Howard is 100% responsible for the content on this site, except some of it is stolen.
All rights are reserved, unless otherwise noted. Generally, I'm a BSD guy, so you can assume implicit permission to adapt, modify, and redistribute my intellectual property with appropriate attribution. Except some of this content is itself re-appropriated, so you'd best ask first, especially for commercial use. Thanks!
You can contact me via e-mail: dannyman@toldme.com
Most of http://dannyman.toldme.com/ is powered by WordPress.
If you're hip to RSS and whatnot, you can subscribe to this site.
These links are for dannyman: login AND backlinks