bad time

hi

my utc time is example: 23h00. it’s the same time for the bios.

date return me 00:00

i live in france, in kde, i can see: utc: 23h00, paris 00:00
but the correct time it’s 23h00 for paris

what i need to change to fix this problem?

thanks

Is this on a laptop? Or a desktop machine?
Is this on a dual booting machine, i.e. with Windows?
Did you set the correct time zone?

On 2012-11-11 23:36, collinm wrote:

> what i need to change to fix this problem?

In a terminal, as root, do:


hwclock --debug ; date

and post all that inside code tags. Advanced editor, ‘#’ button.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” (Minas Tirith))

i use a laptop andonly have linux

hwclock from util-linux 2.21.2
Using /dev interface to clock.
Last drift adjustment done at 1351368902 seconds after 1969
Last calibration done at 1351368902 seconds after 1969
Hardware clock is on UTC time
Assuming hardware clock is kept in UTC time.
Waiting for clock tick…
…got clock tick
Time read from Hardware Clock: 2012/11/12 07:30:16
Hw clock time : 2012/11/12 07:30:16 = 1352705416 seconds since 1969
lun. 12 nov. 2012 07:30:16 UTC -0.283095 seconds
lun. nov. 12 07:30:13 UTC 2012

in kde, i removed paris time and now i see the same time for local and utc.

if i said to display paris, it’s like +1 hours from utc

Your timezone is set to UTC. If you now set time to wallclock in CET timezone, your time is effectively offset by one hour. You have to configure your system to use correct timezone and then change time to correct Paris time.

so i need to do it with date command?

On 2012-11-12 07:36, collinm wrote:
>
> i use a laptop andonly have linux
>
> hwclock from util-linux 2.21.2
> Using /dev interface to clock.
> Last drift adjustment done at 1351368902 seconds after 1969
> Last calibration done at 1351368902 seconds after 1969
> Hardware clock is on UTC time
> Assuming hardware clock is kept in UTC time.
> Waiting for clock tick…
> …got clock tick
> Time read from Hardware Clock: 2012/11/12 07:30:16
> Hw clock time : 2012/11/12 07:30:16 = 1352705416 seconds since 1969
> lun. 12 nov. 2012 07:30:16 UTC -0.283095 seconds
> lun. nov. 12 07:30:13 UTC 2012

I told you to use code tags, and you did not. And as you did not post it
all, including the command line before and after, I don’t know if you
did it correctly as root or not.

So, the user that run the above (root or not) is not using Paris time,
but UTC time. You have to correct that - in yast it is systemwide point
and click on paris). Do it, log out, in, and retest.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” (Minas Tirith))

to run this command, you need to be run root, thanks to the sbin folder

yast

http://imagepaste.nullnetwork.net/img/1352747641yast_time.jpeg

kde display

http://imagepaste.nullnetwork.net/img/1352747689kde.jpeg

command shell

# hwclock --debug ; date
hwclock from util-linux 2.21.2
Using /dev interface to clock.
Last drift adjustment done at 1352747415 seconds after 1969
Last calibration done at 1352747415 seconds after 1969
Hardware clock is on UTC time
Assuming hardware clock is kept in UTC time.
Waiting for clock tick...
...got clock tick
Time read from Hardware Clock: 2012/11/12 19:12:56
Hw clock time : 2012/11/12 19:12:56 = 1352747576 seconds since 1969
lun. 12 nov. 2012 20:12:56 CET  -0.782994 seconds
lun. nov. 12 20:12:55 CET 2012

paris time it’s 20:12

On 2012-11-12 20:26, collinm wrote:

> to run this command, you need to be run root, thanks to the sbin folder

Ok.

> yast
>
> [image: http://imagepaste.nullnetwork.net/img/1352747641yast_time.jpeg]

Sorry, I can’t look at those images: my Internet at the moment is capped
at 500 MB/month. But the paste below tells me what I need :slight_smile:

> Code:
> --------------------
> # hwclock --debug ; date
> hwclock from util-linux 2.21.2
> Using /dev interface to clock.
> Last drift adjustment done at 1352747415 seconds after 1969
> Last calibration done at 1352747415 seconds after 1969
> Hardware clock is on UTC time
> Assuming hardware clock is kept in UTC time.
> Waiting for clock tick…
> …got clock tick
> Time read from Hardware Clock: 2012/11/12 19:12:56
> Hw clock time : 2012/11/12 19:12:56 = 1352747576 seconds since 1969
> lun. 12 nov. 2012 20:12:56 CET -0.782994 seconds
> lun. nov. 12 20:12:55 CET 2012
>
> --------------------

So both CMOS clock and System clock are correct now.

> paris time it’s 20:12

Yep. So at this point the system is correct. However, if your KDE clock
is still wrong, then it is an issue with KDE only. I remember a post
recently with the same problem as you: I don’t remember if the issue was
a kde theme or the applet configuration.

Found it.

This is what that person (jcdole) did:

> I Think there is a bug somewhere.
> I fix it by chance.
> Trying every things I finally
> 1- go to panel
> 2- Digital clock setting
> 3- Appearance
> 4- Set on - Set off Checkbox “Show time zone” ==> The clock jump to
> the good local time.

thread: TIMES - Unable to set time to the right value


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” (Minas Tirith))

i set in the digital clock to local so now

in the kde time applet i see: utc: 20:21 and paris 21:21

On 2012-11-12 21:26, collinm wrote:
>
> i set in the digital clock to local so now
>
> in the kde time applet i see: utc: 20:21 and paris 21:21

So your issue is solved, right? :slight_smile:


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” (Minas Tirith))