Unable to set time/clock (Solved)

Booting, installing, newbie
Post Reply
Message
Author
User avatar
Freedom
Posts: 30
Joined: Mon 18 Jul 2005, 01:32

Unable to set time/clock (Solved)

#1 Post by Freedom »

In Puppy 1.03 my clock is 1 hour slow. I have tried to change time zones but it does not make any changes to the time no matter what zone I select.

And Xclock just seems to be an anolog type display which is also 1 hour slow.
Is there a way to correct this?
www.gnu.org
www.PCCleanUp.US

User avatar
rarsa
Posts: 3053
Joined: Sun 29 May 2005, 20:30
Location: Kitchener, Ontario, Canada
Contact:

#2 Post by rarsa »

The standard linux way of changing the date is through the console.

Open a command console (rxvt) and type the following command

Code: Select all

date MMDDhhmmYYYY.s

# for example to set the time to 8:15:20 PM on July 20, 2005 type the command as follows

date 072020152005.20
Alternatively you could install an application to keep your time syncronized. I am sure that I saw that someone posted a DotPup for such application. I will have a look.

User avatar
Freedom
Posts: 30
Joined: Mon 18 Jul 2005, 01:32

#3 Post by Freedom »

Well rarsa.
I tried to use the clock from net program and it gave the same thing the other did. 1 hour behind.

I looked over your instructions and it took a min for me to figure out what you were saying with the time and date and all but once I figured it out. I changed the time so that it is correct with out problems. Thank you for your help. :D
www.gnu.org
www.PCCleanUp.US

User avatar
Ian
Official Dog Handler
Posts: 1234
Joined: Wed 04 May 2005, 12:00
Location: Queensland

#4 Post by Ian »

Did you try using the Set time/date in Control panel after you set the timezone.

GuestToo
Puppy Master
Posts: 4083
Joined: Wed 04 May 2005, 18:11

#5 Post by GuestToo »

also, the time may not adjust automatically for daylight-savings-time, which could make it an hour off (you would have to reset the clock time yourself)

User avatar
rarsa
Posts: 3053
Joined: Sun 29 May 2005, 20:30
Location: Kitchener, Ontario, Canada
Contact:

#6 Post by rarsa »

Actually after I suggested looking at the 'internet time' DotPup I tried it myself.

Apparently it requires that the system date is UTF. My system clock has the local time (GMT -5) so when I set the time with the Internet time utility it set it 5 hours slow.

Oh, another thing for GuestToo: The 'Internet time' utility shows that you should set your timezone first, and it gives as an example New York +5, actually New York is -5 meaning that when it is 7 GMT it is 2 EST.

GuestToo
Puppy Master
Posts: 4083
Joined: Wed 04 May 2005, 18:11

#7 Post by GuestToo »

my /etc/TZ is EST5EDT
which means Eastern Standard Time (offset = +5) and automatically use Eastern DaylightSavings Time

as far as i know, the offset for EST is +5 ... not -5
The offset string immediately follows std and specifies the time value to be added to the local time to get Coordinated Universal Time (UTC). The offset is positive if the local time zone is west of the Prime Meridian and negative if it is east.
see: http://www.die.net/doc/linux/man/man8/hwclock.8.html
and: http://www.die.net/doc/linux/man/man3/tzset.3.html

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#8 Post by Flash »

Can anyone say why the acronym for Coordinated Universal Time is UTC? :?

GuestToo
Puppy Master
Posts: 4083
Joined: Wed 04 May 2005, 18:11

#9 Post by GuestToo »

http://en.wikipedia.org/wiki/UTC
http://en.wikipedia.org/wiki/Universal_Time
"UTC" is not a true abbreviation; it is a variant of Universal Time, abbreviated UT, and has a modifier C (for "coordinated") appended to it just like other variants of UT
Universal Time (UT) is a timescale based on the rotation of the Earth.

User avatar
rarsa
Posts: 3053
Joined: Sun 29 May 2005, 20:30
Location: Kitchener, Ontario, Canada
Contact:

#10 Post by rarsa »

Well, those utilities have it backwards as it is normally accepted in timezone maps (and Other linux tools and other OS's tools)

http://www.worldtimezone.com/
http://aa.usno.navy.mil/faq/docs/us_tzones.html

It is normally accepted that -5 is EST.

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#11 Post by Flash »

Thanks for the explanation. It explains why several Linux distros I tried would get the time way off, and then when I'd get it set right in Linux and boot back into Windows it would be way off in the other direction.

The wonderful thing about standards is there are so many to choose from. :cry:

User avatar
peppyy
Posts: 443
Joined: Mon 27 Jun 2005, 23:49
Location: VT USA
Contact:

#12 Post by peppyy »

I had no luck at all setting the time until I went to the bios and first set the correct time there. The problem is that this bios does not support time zones so when ever I set the system time from the internet it sets to utc in the bios. I really should update my bios but I don't trust my floppy drive or my cdrom.

I named it well-enough and left it alone.

:D
Puppy Linux...
It just works!

User avatar
Freedom
Posts: 30
Joined: Mon 18 Jul 2005, 01:32

#13 Post by Freedom »

Ian wrote:Did you try using the Set time/date in Control panel after you set the timezone.
I do not have a set date time in my control panel.

There is a set time zone.
Or Xclock.

Neither of which correct the problem.

The other thing is that the command line solution only stays correct as long as I do not restart the PC. If I do it goes back to the online sync time which is several (5 or 6) hours earlier than my time.

Now I just booted back in to Puppy from the other OS and the time is correct in it.
Wonder what happened there? Cause it was WAY OFF this morning.

Dorothy and Toto must have stopped by and fixed the problem.
www.gnu.org
www.PCCleanUp.US

Post Reply