Unix Technical Forum

System time and /etc/TIMEZONE

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 ...


Go Back   Unix Technical Forum > Unix Operating Systems > Sco Unix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-15-2008, 12:42 PM
David Kirk
 
Posts: n/a
Default System time and /etc/TIMEZONE

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-15-2008, 12:42 PM
Nachman Yaakov Ziskind
 
Posts: n/a
Default Re: System time and /etc/TIMEZONE

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-15-2008, 12:42 PM
Jean-Pierre Radley
 
Posts: n/a
Default Re: System time and /etc/TIMEZONE

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-15-2008, 12:42 PM
David Kirk
 
Posts: n/a
Default Re: System time and /etc/TIMEZONE

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



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-15-2008, 12:42 PM
David Kirk
 
Posts: n/a
Default Re: System time and /etc/TIMEZONE

> > | 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


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:47 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com