LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-21-2012, 02:06 AM   #1
wuwenli
LQ Newbie
 
Registered: Aug 2006
Posts: 5

Rep: Reputation: 0
Debian system clock unexpected change to wrong time


My setup and setting:

WinXP + VirtualBox + Guest OS (Debian Linux 6)

In my BIOS, CMOS clock sets to local time, which used by WinXP.
VirtualBox virtual machine set HW clock not UTC
In Debian, in /etc/default/rcS, UTC=no and /etc/timezone has "America/Los_Angeles" which is my location.
NTP service is turned off.

Problem:
type date command I got:
Wed Mar 21 00:51:36 PDT 2012

that is 1 hour ahead of my real time. Then I run "ntpdate pool.ntp.org" and got:
20 Mar 23:52:17 ntpdate[2027]: step time server 108.59.14.130 offset -3570.239483 sec

that is correct time for me. Then I keep typing date to print current system, it shows correct time for a few seconds and then shows

Wed Mar 21 00:52:00 PDT 2012

Mysteriously the system time get changed back to the wrong time. I right away type "hwclock" to display HW clock, it shows:

Tue 20 Mar 2012 11:52:03 PM PDT -0.322598 seconds

that is the correct time set in BIOS.

So the issue here is that some software update the system clock after I set it to correct value manually. And I don't know what SW does that. And how come it's always 1 hour ahead of real time? Does it caused by day light saving? How to fix this?

Thanks in advance!
 
Old 03-22-2012, 01:48 AM   #2
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
hi

what happens when you run with root powers

Code:
dpkg-reconfigure tzdata
and I assume choose US and lax?
 
  


Reply

Tags
bios, date, dst, hwclock


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Clock on wrong time (system clock is set to UTC) yanom Debian 6 07-26-2011 11:26 AM
System clock correct, hardware clock wrong karlovac Linux - General 5 01-16-2009 07:19 PM
wrong time on clock?? r00tNinj4 Debian 9 05-14-2006 10:01 AM
Various clock issues: Clock shows wrong time only in Knoppmyth, & CMOS time change ? davidbix General 1 04-05-2006 09:58 PM
system time is wrong, how do i change? jjd228 Linux - General 8 02-19-2004 04:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration