This is a discussion on System time and /etc/TIMEZONE within the Sco Unix forums, part of the Unix Operating Systems category; --> Hey, I have just installed an NTP server on our network and I want to synchronise the time on ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hey, I have just installed an NTP server on our network and I want to synchronise the time on all my SCO servers with it. It all works well except that the SCO servers are an hour behind. This is obviously a daylight savings problem. We have always adjusted for daylight savings manually. I did a bit of research and found out about /etc/TIMEZONE. I commented out the existing timezone and fixed it up to do the daylight saving conversion itself: # TZ='NZST-12' TZ='NZST-12:00:00NZDT-13:00:00,M10.1.0,M3.3.0' export TZ Now to get that to take effect, I have to run ". /etc/TIMEZONE". Now the date and time are correct, but only for the current session of the current user. Can someone please tell me how I make this a system wide change? Later David Kirk |
| |||
| David Kirk wrote (on Sun, Jan 11, 2004 at 12:20:59PM -0800): > about /etc/TIMEZONE. I commented out the existing timezone and fixed > it up to do the daylight saving conversion itself: > > # TZ='NZST-12' > TZ='NZST-12:00:00NZDT-13:00:00,M10.1.0,M3.3.0' > export TZ > > Now to get that to take effect, I have to run ". /etc/TIMEZONE". Now > the date and time are correct, but only for the current session of the > current user. > > Can someone please tell me how I make this a system wide change? > > > Later > > David Kirk Put ". /etc/TIMEZONE" in /etc/profile. That lets it run when any user logs in. -- _________________________________________ Nachman Yaakov Ziskind, EA, LLM awacs@egps.com Attorney and Counselor-at-Law http://ziskind.us Economic Group Pension Services http://egps.com Actuaries and Employee Benefit Consultants |
| |||
| Nachman Yaakov Ziskind typed (on Sun, Jan 11, 2004 at 03:59:00PM -0500): | David Kirk wrote (on Sun, Jan 11, 2004 at 12:20:59PM -0800): | > about /etc/TIMEZONE. I commented out the existing timezone and fixed | > it up to do the daylight saving conversion itself: | > | > # TZ='NZST-12' | > TZ='NZST-12:00:00NZDT-13:00:00,M10.1.0,M3.3.0' | > export TZ | > | > Now to get that to take effect, I have to run ". /etc/TIMEZONE". Now | > the date and time are correct, but only for the current session of the | > current user. | > | > Can someone please tell me how I make this a system wide change? | > | | Put ". /etc/TIMEZONE" in /etc/profile. That lets it run when any user logs in. Overkill and needless. Just reboot, since bcheckrc runs TIMEZONE. -- JP |
| |||
| Thanks Guys. I will try that out. Later David Kirk ps. please excuse the multiple posts. "Jean-Pierre Radley" <jpr@jpr.com> wrote in message news:20040111220307.GF18439@jpradley.jpr.com... > Nachman Yaakov Ziskind typed (on Sun, Jan 11, 2004 at 03:59:00PM -0500): > | David Kirk wrote (on Sun, Jan 11, 2004 at 12:20:59PM -0800): > | > about /etc/TIMEZONE. I commented out the existing timezone and fixed > | > it up to do the daylight saving conversion itself: > | > > | > # TZ='NZST-12' > | > TZ='NZST-12:00:00NZDT-13:00:00,M10.1.0,M3.3.0' > | > export TZ > | > > | > Now to get that to take effect, I have to run ". /etc/TIMEZONE". Now > | > the date and time are correct, but only for the current session of the > | > current user. > | > > | > Can someone please tell me how I make this a system wide change? > | > > | > | Put ". /etc/TIMEZONE" in /etc/profile. That lets it run when any user logs in. > > Overkill and needless. > > Just reboot, since bcheckrc runs TIMEZONE. > > > -- > JP |
| ||||
| > > | Put ". /etc/TIMEZONE" in /etc/profile. That lets it run when any user > logs in. That works. > > > > Overkill and needless. > > > > Just reboot, since bcheckrc runs TIMEZONE. So does that. Thanks again. Later David Kirk |