Re: [opensuse] Time & Date



Mark Misulich pecked at the keyboard and wrote:
On Sat, 2009-11-07 at 13:05 +0100, Carlos E. R. wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



On Saturday, 2009-11-07 at 04:26 -0500, Mark Misulich wrote:

# rm /etc/adjtime
# ntpdate -q ntp1.ptb.de #(or other time server); shows the difference between your computer's time and the real time
# ntpdate ntp1.ptb.de # sets the system time
# hwclock --systohc # copies system time to BIOS

Hi Istvan,
I reset the time as per your instructions, and have booted the computer
several times during the day. So far the computer seems to be
presenting time and date ok, in gmt not local time. That is fine with
me with all the traveling I do for work, so I will just leave it this
way.
Hold on, there might be a problem with that.

What is the output of the command "date" on your system? If it says
something like this:

~> date
Sat Nov 7 13:01:43 CET 2009


If the letters there say some local time (like CET above), but the time is
UTC, then you do have a problem. Repeat the procedure taking attention to
the --utc or --localtime as I said in my post.


If you still get the wron time after that, make sure your timezone is
properly configured in YaST.

- --
Cheers,
Carlos E. R.

Hi Carlos,
here is the output of "date"

Sat Nov 7 19:28:24 EST 2009

The time in yast is set to Eastern Time, yet the time on the computer is
displayed in GMT in a 12 hour clock. The current display is 07:32pm, so
I add 12 hours to it to get GMT time of 1932 hours gmt.

Even though the time is set to eastern time, it is displaying in gmt. I
don't know how to set it to right, so --- back to you for evaluation and
new instructions.

Mark



Eastern Standard Time (in the USA) is GMT -5 hours. When it is 1932 GMT
it is 1432 EST in the USA. Perhaps this is why you think the time is
off. By the way, while under daylight savings time the difference is 4
hours (GMT -4).

--
Ken Schneider
SuSe since Version 5.2, June 1998
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx



Relevant Pages

  • Re: how do i write basic time function
    ... The Standard provides a time_t type that can hold a value ... representing the system time. ... a stdout function, ie puts, to display. ...
    (comp.lang.c)
  • Re: [opensuse] Time & Date
    ... # hwclock --systohc # copies system time to BIOS ... The time in yast is set to Eastern Time, yet the time on the computer is ... The current display is 07:32pm, ... Even though the time is set to eastern time, ...
    (SuSE)
  • display system time
    ... I'm looking for a way to display the system time on a device that can ... be used in an office atmosphere. ... an unattended telnet session with the cde clock. ...
    (comp.unix.aix)
  • Get running time with C# and arm9 device
    ... I am trying to get hold of and display the time from when a user clicks start. ... I tried getting a starttime using TimeDate time.Now ... I have checked WinCE 6.0 system time over several houors but not detecting ...
    (microsoft.public.windowsce.app.development)
  • Re: [SLE] easy way to adjust time in gnome
    ... Right now I don't remember if there is an entry in Yast. ... But then the system time will probably be screwed up on the next ... which will be recreated on the next boot. ... so that the time adjusting scripts don't think that the clock was slow ...
    (SuSE)