Find the answer to your Linux question:
Results 1 to 7 of 7
I've got a dual boot system, both with Debian 4.0 and Windows XP. Sometime ago I ran into a strange issue with my time getting changed in Debian each time ...
  1. #1
    Just Joined!
    Join Date
    Apr 2006
    Posts
    7

    Time in Debian

    I've got a dual boot system, both with Debian 4.0 and Windows XP. Sometime ago I ran into a strange issue with my time getting changed in Debian each time I booted into Windows. If I were to change the time in one OS it would radically change the time in the other. Why is this. My BIOS is fine. Now, since the daylight savings time has kicked in again, my time in Debian is wrong, and I can't correct it. This is what I've done thus far:

    date 031011302007
    hwclock --directisa --systohc

    When I check again with just the date command it returns normal, but the kde gui is displaying a time that is 4 hours less. Why is this? If I change the time via the kde gui, my screen goes black and doesn't return unless I poweroff then reboot.

    Any of you have suggestions on this?

  2. #2
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    probably has something to do with timezones and if you're computer thinks you are setting the date to UTC rather than your local time or not, when you installed it should have asked you whether or not your system clock was set to UTC or local time, depending on your answer this would affect how the system sets your time

  3. #3
    Linux Guru
    Join Date
    Nov 2007
    Posts
    1,695
    Yep - you probably installed Debian and selected "Clock is set to UTC" vs. "Clock is set to local time."

    When Debian shuts down, it's updating the CMOS clock with the time from the OS, which throws Windows off when it boots.

    PS: An easy way to set the time accurately (if you have internet access) is to sync with an NTP server using:

    Code:
    ntpdate pool.ntp.org

  4. #4
    Just Joined!
    Join Date
    Apr 2006
    Posts
    7
    Thanks for the replies!

    Isn't there a file in Debian that will allow me to change this from UTC to LocalTime?

  5. #5
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Set UTC=no in /etc/default/rcS file.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  6. #6
    Just Joined!
    Join Date
    Apr 2006
    Posts
    7
    great! thanks!

  7. #7
    Just Joined!
    Join Date
    Apr 2006
    Posts
    7
    tzconfig was what I needed to correct my issue.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •