Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 03-21-2012, 02:06 AM   #1
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.

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" and got:
20 Mar 23:52:17 ntpdate[2027]: step time server 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
LQ 5k Club
Registered: Oct 2003
Location: Australia
Distribution: Devuan
Posts: 5,476

Rep: Reputation: Disabled

what happens when you run with root powers

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


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 > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:18 AM.

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