View previous topic :: View next topic |
Author |
Message |
Nazgulled Guru
Joined: 04 Aug 2005 Posts: 485
|
Posted: Sun Oct 15, 2006 4:42 pm Post subject: [SOLVED] Setting date/time along with windows |
|
|
I tried search for this but all the keywords I used show me a list of topics that had nothing to do with my problem, but I believe this question was already answer, so I'm sorry for reposting this.
The thing is, I have gentoo linux and windows and I'm not able to have the correct date/time in both systems. I correct one the other gets all messed up and vice-versa. I try to fix it in the bios but one of them always gets it wrong.
In case you need to know, my timezone is GMT and I'm currently on DST. I also have CLOCK set to "local" on /etc/conf.d/clock.
So, how can I have the correct date and time in windows and gentoo without messing anything up?
Last edited by Nazgulled on Wed Oct 18, 2006 12:10 am; edited 1 time in total |
|
Back to top |
|
|
Headrush Watchman
Joined: 06 Nov 2003 Posts: 5597 Location: Bizarro World
|
Posted: Sun Oct 15, 2006 5:13 pm Post subject: |
|
|
Instead of a specific timezone, use localtime.
/etc/conf.d/clock wrote: | # Set CLOCK to "UTC" if your system clock is set to UTC (also known as
# Greenwich Mean Time).
#Note that if you dual boot with Windows, then
# you should set it to "local". |
Edit: Added quote from /etc/conf.d/clock
Last edited by Headrush on Sun Oct 15, 2006 5:54 pm; edited 4 times in total |
|
Back to top |
|
|
Duki n00b
Joined: 20 Nov 2005 Posts: 24 Location: Germany
|
Posted: Sun Oct 15, 2006 5:14 pm Post subject: |
|
|
edit: *got it backwards, see below* use "UTC" instead of "local". With your zoneinfo properly set up, the time will show up right in both systems (i.e. local time), but the bios is going to keep the time as UTC.
Hope that helps _________________ "Not everything that counts can be counted, and not everything that can be counted counts." - Albert Einstein
Last edited by Duki on Mon Oct 16, 2006 8:35 am; edited 1 time in total |
|
Back to top |
|
|
Nazgulled Guru
Joined: 04 Aug 2005 Posts: 485
|
Posted: Sun Oct 15, 2006 5:33 pm Post subject: |
|
|
I'm sorry but I'm a bit confused with the both posts... One thing I must say is that, when I said my timezone is GMT is that I am on GMT not that my gentoo is set to GMT, actually, I don't know which timezone is set or where can I check/change that.
Why should I set to UTC when it says to use "local" if I dual boot with windows, which I do? I had this problem before and I remember changing it to local and doing some changes to both clocks and then it was fixed, but now, it isn't anymore... |
|
Back to top |
|
|
Duki n00b
Joined: 20 Nov 2005 Posts: 24 Location: Germany
|
Posted: Mon Oct 16, 2006 8:35 am Post subject: |
|
|
sorry got it backwards - yes use local for dual boot, and set your timezone as mentioned in the install docs! _________________ "Not everything that counts can be counted, and not everything that can be counted counts." - Albert Einstein |
|
Back to top |
|
|
Nazgulled Guru
Joined: 04 Aug 2005 Posts: 485
|
Posted: Mon Oct 16, 2006 1:17 pm Post subject: |
|
|
I did all that but didn't work... The time is getting all messed up when I fix it in windows and reboot to gentoo or the other way around... |
|
Back to top |
|
|
zoni n00b
Joined: 04 Sep 2006 Posts: 60 Location: The Netherlands
|
Posted: Mon Oct 16, 2006 1:23 pm Post subject: |
|
|
Have you tried changing in /etc/conf.d/clock to Code: | CLOCK_SYSTOHC="yes" | ? |
|
Back to top |
|
|
Nazgulled Guru
Joined: 04 Aug 2005 Posts: 485
|
Posted: Mon Oct 16, 2006 1:28 pm Post subject: |
|
|
yes, I tried that... |
|
Back to top |
|
|
zoni n00b
Joined: 04 Sep 2006 Posts: 60 Location: The Netherlands
|
Posted: Mon Oct 16, 2006 1:35 pm Post subject: |
|
|
Hmm... I'm out of ideas then.. |
|
Back to top |
|
|
Nazgulled Guru
Joined: 04 Aug 2005 Posts: 485
|
Posted: Mon Oct 16, 2006 2:12 pm Post subject: |
|
|
anyone else? |
|
Back to top |
|
|
Earthwings Bodhisattva
Joined: 14 Apr 2003 Posts: 7753 Location: Germany
|
Posted: Mon Oct 16, 2006 2:36 pm Post subject: |
|
|
Nazgulled wrote: | The time is getting all messed up when I fix it in windows and reboot to gentoo or the other way around... | What do you mean by "all messed up": +/- n hours or something other? _________________ KDE |
|
Back to top |
|
|
Nazgulled Guru
Joined: 04 Aug 2005 Posts: 485
|
Posted: Mon Oct 16, 2006 5:18 pm Post subject: |
|
|
Well, something I noticed:
Booted into gentoo, changed the system time with the "date" command and then changed the hardware clock to the current system clock using "hwclock" so both clocks are in sync. And, let's just say the time is 12:00. Rebooted, checking the bios, and I have the correct time I just changed in gentoo. Then, I boot into windows, the time is ok (12:00). I reboot back to gentoo and now the time it's like 10/15 minutes earlier, like 11:45. I reboot back to windows, and now the time is 11:45 like it was on gentoo. I reboot back to gentoo and the time is more 10/15 minutes earlier, like 11:30. And this goes on and on and I don't get why I'm having this behavior.
(Of course the time is a some seconds/minutes off when I reboot into windows or gentoo cause of the time a reboot takes)
I don't get why this happens... |
|
Back to top |
|
|
Earthwings Bodhisattva
Joined: 14 Apr 2003 Posts: 7753 Location: Germany
|
Posted: Mon Oct 16, 2006 5:47 pm Post subject: |
|
|
Then it's very likely /etc/adjtime: man hwclock wrote: | --noadjfile
disables the facilities provided by /etc/adjtime. hwclock will not read nor write to that file with this option. Either
--utc or --localtime must be specified when using this option. |
adjtime is a very good search term here in the forums as well. _________________ KDE |
|
Back to top |
|
|
Nazgulled Guru
Joined: 04 Aug 2005 Posts: 485
|
Posted: Tue Oct 17, 2006 12:03 pm Post subject: |
|
|
I think I fixed it now... thanks. |
|
Back to top |
|
|
|