SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#51 2011-04-27 08:06:02

Rubinski
Member
Registered: 2011-04-27
Posts: 16

Re: Changing UTC / Timezone / Network Time

Thanks for your help. For some reason I was 25 hours in the future by default. This instruction helped me resolve what seemed like a fairly basic issue. It made me feel like an uber noob sad

Offline

Be excellent to each other!

#52 2011-04-27 18:41:26

Elviswind
Member
Registered: 2011-03-04
Posts: 29

Re: Changing UTC / Timezone / Network Time

Offline

#53 2011-05-04 00:54:14

Vansgo
#! Die Hard
Registered: 2011-05-02
Posts: 1,580
Website

Re: Changing UTC / Timezone / Network Time

sudo dpkg-reconfigure tzdata

This worked when I chose, Etc, UTC

I am now synchronized

Offline

#54 2011-06-06 08:08:47

SabreWolfy
#! Die Hard
Registered: 2009-03-09
Posts: 1,285

Re: Changing UTC / Timezone / Network Time

I'm using #! Statler OB. I'm not interested in installing ntpupdate, etc. I have my system clock set to UTC, I've specified UTC=yes in /etc/default/rcS as mentioned previously, I've run dpkg-reconfigure tzdata as root and selected my location (which is UTC+2). I've rebooted. The time shown on the bottom panel is still incorrect -- it shows UTC. After running tzdata update, dpkg-reconfigure the time it reports for UTC is actually FOUR hours behind my actual local time. It obviously thinks that my system clock is reporting local time not UTC. Ideas?

Last edited by SabreWolfy (2011-06-06 08:11:14)

Offline

#55 2011-06-06 08:09:50

SabreWolfy
#! Die Hard
Registered: 2009-03-09
Posts: 1,285

Re: Changing UTC / Timezone / Network Time

The above instructions are correct. I rebooted again and checked the system clock, which was now set two hours earlier than UTC. I think the tzdata command may actually adjust the system clock, which means that it may need to be adjusted during the reboot (I'm pretty sure I did this the FIRST time I rebooted and it WAS still set to UTC...?). Anyway, rebooting, checking and then resetting the system clock to UTC "solved" this.

Last edited by SabreWolfy (2011-06-06 09:15:26)

Offline

#56 2011-07-06 12:28:29

fredbird67
#! Junkie
From: Ballwin (St. Louis), MO
Registered: 2010-03-20
Posts: 294

Re: Changing UTC / Timezone / Network Time

73ChargerFan, many thanx!  My wife just told me we've got 5 minutes before we need to get out of here and go to work, yet my clock said we still had 10 minutes.  I then looked around here in the Crunchbang forums and found your little tip, which instantly pushed my clock on Statler Xfce ahead 5 minutes to the correct time. smile


Just who is General Failure and what's he doing reading my hard drive?

Offline

#57 2011-08-04 05:07:26

frogdos
Member
From: scotland
Registered: 2010-01-23
Posts: 20

Re: Changing UTC / Timezone / Network Time

Big thanks for that, 73ChargerFan. My clock was 4hrs slow. It was only when it started getting light that I realised. It's gonna be a long day now.


Wake up and smell the sheep dip, folks

Offline

#58 2011-10-05 14:17:10

bubblehouse
New Member
From: New York
Registered: 2011-10-05
Posts: 7

Re: Changing UTC / Timezone / Network Time

basic question for the rest of us still learning - but it came up trying to follow this thread, so others may find this useful:

It would be simple to change the /etc/default/rcS file, but it is read only...
How do I change the permissions to allow me to edit the UTC= entry?  I can't get past the "read only" permission

Offline

#59 2011-10-05 17:17:09

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 13,970

Re: Changing UTC / Timezone / Network Time

sudo !!

Offline

#60 2011-12-22 08:05:10

DeadlyRipped
New Member
Registered: 2011-12-22
Posts: 1

Re: Changing UTC / Timezone / Network Time

I was having a similar problem (4.5 hours behind real local time) but found a slightly different solution.

I was unable to update using the sudo apt-get install update because my computer could not connect to the mirrors.  I was also unable to install ntpdate and had no experience with manually installing packages.

Instead, I did the following:
I first changed the BIOS to reflect the actual time (as suggested in this thread).  Not surprisingly, this did not correct my issue.
I then changed my time zone (as suggested in this thread) using sudo dpkg-reconfigure tzdata except that instead of changing it to my correct timezone, I changed it to London (GMT -0:00).  This caused my computer to adjust both local and universal times.
I then returned to my BIOS, which now showed a different time.  I set the BIOS time to Universal (London) time.
I then observed that my desktop clock matched the London time that I had entered in the BIOS.
I then changed my timezone to my actual time zone, and it adjusted my computer's "local" time while maintaining the appropriate "Universal" time.

This feels like a lazy fix, as it doesn't correct whatever underlying problem ntpdate would have, but I hope at least this helps someone in a similar situation as me!

Offline

#61 2013-05-13 06:08:34

greenpossum
Member
Registered: 2009-07-10
Posts: 13

Re: Changing UTC / Timezone / Network Time

I know this is an old thread but Waldorf (Wheezy) has changed things a bit. For a dual-boot machine Windows XP (and maybe others) and #! you should set the BIOS clock to localtime. The place to do this is no longer /etc/default/rcS but /etc/adjtime. Old howtos talked about setting UTC=no in /etc/default/rcS. This is no longer the place and the man page says as much.

1. Edit /etc/adjtime, change UTC to LOCAL.
2. Synchronise the system (software) time using ntp or manually using date. Check that the correct lime is displayed.
3. Push the system time to the hardware time with sudo hwclock --systohc.
4. Check that the BIOS time is the local time with sudo hwclock.
5. Check that the BIOS UTC time is UTC time with sudo hwclock --utc.

Reboot to Windows XP and you should see the correct time.

It's far more preferable to set the correct timezone for your location rather than lie about it to the computer otherwise DST changes may not be tracked correctly.

Twice a year, as soon as possible after DST changes, you will have to boot to Windows if only for a short while to adjust the BIOS clock. This is an ancient bugbear.

Offline

#62 2013-05-27 04:41:06

KrunchTime
#! Die Hard
From: not where I belong
Registered: 2012-03-02
Posts: 3,264

Re: Changing UTC / Timezone / Network Time

Last edited by KrunchTime (2013-05-27 04:48:44)

Offline

#63 2013-05-27 18:10:24

xtra5
New Member
Registered: 2013-05-10
Posts: 3

Re: Changing UTC / Timezone / Network Time

solved

Last edited by xtra5 (2013-07-16 05:37:40)

Offline

#64 2013-06-04 06:40:21

KrunchTime
#! Die Hard
From: not where I belong
Registered: 2012-03-02
Posts: 3,264

Re: Changing UTC / Timezone / Network Time

@greenpossum...You're tip worked like a charm.  When I boot into Windows, the time and date are correct.  Thanks again for your great tip!

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: acrobat

Debian Logo