Jan 31, 2013

openSUSE Forums: hwclock swap utc and localtime

openSUSE Forums
openSUSE Forums
hwclock swap utc and localtime
Jan 31st 2013, 16:29

I'm new here, sorry if this post is in wrong place...

First of all, I readed a lot of threads about configuration about localtime or utc.

I have this problem in a Server (only one SO in the machine) with OpenSuse 12.2 (Generated by Kiwi JeOS) and the configuration was apointed to UTC.
/etc/localtime
/etc/sysconfig/clock

Please, see the sequence of command below and you can look the problem...

Code:

# sntp -s a.ntp.br
31 Jan 16:19:00 sntp[2248]: Started sntp
2013-01-31 16:19:00.085036 (+0000) +0.00025 +/- 0.002762 secs
# hwclock -s
# date ; date -u ; hwclock -r --localtime ; hwclock -r --utc
Thu Jan 31 16:19:33 UTC 2013
Thu Jan 31 16:19:33 UTC 2013
Thu Jan 31 16:19:34 2013  -0.740107 seconds
Thu Jan 31 16:19:35 2013  -1.001539 seconds

Up to here is all ok!!!

# TZ=America/Sao_Paulo
# export TZ
# date ; date -u ; hwclock -r --localtime ; hwclock -r --utc
Thu Jan 31 14:20:53 BRST 2013
Thu Jan 31 16:20:53 UTC 2013
Thu Jan 31 16:20:54 2013  -0.912976 seconds
Thu Jan 31 14:20:55 2013  -0.986086 seconds

Look at the hwclock answer...
It was changed...

How can I solve that?

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

No comments: