Page 1 of 1

Unable to set time/clock (Solved)

Posted: Wed 20 Jul 2005, 23:35
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?

Posted: Wed 20 Jul 2005, 23:55
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.

Posted: Thu 21 Jul 2005, 00:49
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

Posted: Thu 21 Jul 2005, 00:54
by Ian
Did you try using the Set time/date in Control panel after you set the timezone.

Posted: Thu 21 Jul 2005, 01:04
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)

Posted: Thu 21 Jul 2005, 02:21
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.

Posted: Thu 21 Jul 2005, 02:37
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

Posted: Thu 21 Jul 2005, 02:56
by Flash
Can anyone say why the acronym for Coordinated Universal Time is UTC? :?

Posted: Thu 21 Jul 2005, 03:15
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.

Posted: Thu 21 Jul 2005, 03:48
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.

Posted: Thu 21 Jul 2005, 04:40
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:

Posted: Thu 21 Jul 2005, 13:48
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

Posted: Thu 21 Jul 2005, 22:59
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.