how do I set my time zone ??

how do I set my time zone ??

Post by Darx » Sun, 29 Sep 1996 04:00:00



This is really bothering me.  I'm almost certain I can set my time zone
with "date -s datestr" where datestr "can be in almost any common format."
But I can't figure out how the hell it wants me to tell it my time zone.
________________________________________________________________________
***PGP fingerprint = D5 EB F8 E7 64 55 CF 91  C2 4F E0 4D 18 B6 7C 27***

                    Sanity is a crutch for the weak.

 
 
 

how do I set my time zone ??

Post by Henrik Storn » Mon, 30 Sep 1996 04:00:00



Quote:>This is really bothering me.  I'm almost certain I can set my time zone
>with "date -s datestr" where datestr "can be in almost any common format."
>But I can't figure out how the hell it wants me to tell it my time zone.

Setting the timezone is done by making a symlink to the appropriate
zoneinfo file, stored in /usr/lib/zoneinfo.

Exactly what symlink should be made depends on the distribution. RedHat
has
   /etc/localtime -> /usr/lib/zoneinfo/yourtimezone
while Slackware (at least in the 2.2 release I used a while back) had
   /usr/lib/zoneinfo/localtime -> /usr/lib/zoneinfo/yourtimezone

Cutting a long story short, you need to make sure that the zoneinfo
file describing your timezone is available as /usr/lib/zoneinfo/localtime

It is also recommended that 'posixrules' and 'posixtime' be set up as
symlinks to the localtime file, all in /usr/lib/zoneinfo

--
Henrik Storner                     | "Life is like a 10 speed bicycle.

http://eolicom.olicom.dk/~storner/ |                        C. Schultz

 
 
 

1. how to set time and time zone correctly?

date returned by "date" on my linux system is always 4 hours behind
the real time, with something like this:
Mon Jul  1 09:37:22 EDT 1996
when the real time 13:37 EDT.

I think that my PC's machine clock is 13:37. It looks that linux think
the machine's time is GMT, thus set the local time (EDT) to 09:37.
How can I make linux think that the machine's time is local time,
rather than GMT?

I also found that just after I started the system, I got:
Mon Jul  1 13:37:22 1996
without the timezone. Shortly I will get:
Mon Jul  1 09:37:22 EDT 1996

if I use "date" to set the new date to "13:37:22", I think that it will
set the machine's clock to "17:37:22". Thus the time within windows and
DOS won't be correct.

Any suggestions? Thanks a lot.

--


Queen's University               Tel: (613) 545-2723 (o)
Kingston, Ontario K7L 3N6             (613) 547-1353 (h)
Canada                           Fax: (613) 545-6463

2. Cron Starts too many procs

3. How to set Date/Time zone on Linux?

4. Redhat5.2/mouse & keyboard problem

5. How to set time zone?

6. Anyone doing dual-pathing with IBM FC6228s connected to StorageWorks HSG80s

7. How to set Date/Time zone on Linux?

8. Iptables

9. setting time zone

10. Setting date correctly for my time zone

11. set time zone

12. How to set time zone in SunOS 4.1

13. How to set Date/Time zone on Linux?