You are not logged in.

#1 2012-09-28 22:05:16

Lowra
Member
Registered: 2009-09-21
Posts: 192

Clock showing wrong hour even though I followed the Beginner's Guide

Hey guys,

So today I re-installed ArchLinux & Windows 7 on my laptop, here's how it works:
SSD: ArchLinux x64
HDD: Windows 7

I mainly use Arch, and the few times I use Windows, I choose to boot from my HDD instead of my SSD, from the BIOS.
Technically, it's not a dual boot I guess, so I shouldn't be affected by these manipulations

The time showed in my BIOS is correct.
The time showed by Windows 7 is correct.
The time showed in ArchLinux is however wrong, it's two hours late.

Following the Beginner's Guide I've run these command without success:

hwclock --systohc --utc

If any of you has any suggestions...

Thanks :]

Offline

#2 2012-09-28 22:11:20

luvfree
Member
Registered: 2012-08-29
Posts: 81

Re: Clock showing wrong hour even though I followed the Beginner's Guide


Linux only since 2002! Arch Linux only since 2010!
UEFI booting an intel based system trouble free since 2016!

Offline

#3 2012-09-28 22:22:27

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: Clock showing wrong hour even though I followed the Beginner's Guide

Why would it matter that the OSes are on different disks? This IS a dual boot setup. We're talking about the hardware clock, of which you system only has one. You say the time shown in your BIOS is correct, if it's the correct local time and you're telling Arch that it's in UTC, of course you're going to have problems.

Offline

#4 2012-09-28 22:25:42

ixnine
Member
Registered: 2008-11-01
Posts: 60

Re: Clock showing wrong hour even though I followed the Beginner's Guide

Use localtime instead of UTC

Offline

#5 2012-09-28 22:29:01

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Clock showing wrong hour even though I followed the Beginner's Guide

https://wiki.archlinux.org/index.php/Ti … in_Windows 
https://wiki.archlinux.org/index.php/Be … ware_clock

When in doubt use the google... this is something that has been covered in these threads at least three times in the past couple of weeks.  Please do some research before dropping your question here.  You learn gooder that way.

Offline

#6 2012-09-29 05:37:05

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: Clock showing wrong hour even though I followed the Beginner's Guide

Technically, it's not a dual boot I guess, so I shouldn't be affected by these manipulations

Technically, it IS a dual boot, because you can boot two operating systems on the same machine. Hence dual, boot.


So yeah, you need to manipulate ("manipulate", lol) your Windows install, like it says in the guide.

https://wiki.archlinux.org/index.php/Be … ware_clock

Or you could use localtime.


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#7 2012-09-29 08:01:42

Lowra
Member
Registered: 2009-09-21
Posts: 192

Re: Clock showing wrong hour even though I followed the Beginner's Guide

My apologies. I thought that this particular problem between Windows and Linux was caused by Windows somehow overwriting Linux settings, and since in my case they are in different physical drives, I thought I wasn't concerned.

Anyway, since I've read somewhere in the wiki that localtime should be avoided, I successfully did the manipulation do set Windows 7 in UTC.

I've then updated the hardware clock and system clock time, but it didn't change a thing.

I'm going to try the manipulations provided by your link luvfree, thanks smile

I'll keep you posted, thanks to all of you, and again, my apologies for my wrong asumptions wink

EDIT: APPARENTLY IT'S SOLVED:
I had to boot into Linux, and set the time manually with:

# date +%T -s "10:13:13"

Then run:

hwclock --systohc --utc

Next boot, the time value were correct int both Linux, AND Windows big_smile

Thanks to all of you, I'll try to think more next time tongue

Last edited by Lowra (2012-09-29 08:14:01)

Offline

#8 2012-09-29 13:03:20

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Clock showing wrong hour even though I followed the Beginner's Guide

Don't forget that in addition to the registry change in windows, you have to turn off the time updater that windows uses.  You can do it from the clock settings.

Offline

Board footer

Powered by FluxBB