Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 10-10-2005, 11:24 AM   #1
Jude Lucien
LQ Newbie
Registered: Jul 2005
Distribution: Debian Sarge
Posts: 18

Rep: Reputation: 0
Help With Date & Time

I have read chapter 16 on Time in the Debian sysadmin manual but I am still confused.

When I run the date command I have the correct UTC time returned. However, I am in EST timezone and in my /etc/timezone file it says America/New York which is also correct.

I am running kde for my desktop and the clock shows the UTC time, not EST. When I try and change the timezone through the Control Center to EST it will not change the clock.

Basically, my pc is stuck on UTC time and I can't figure out how to change it. I know I can reset the time using the date command but as soon as I reboot I will lose the setting. What I want to do is have the hardware clock set to UTC (which I think it is) and have the desktop set to localtime (EST). I know this must be a simple solution but I can't figure out what file/s to change.

Can anyone help?


I meant to post this in the Debian forum, mods feel free to remove this post.

Last edited by Jude Lucien; 10-10-2005 at 11:27 AM.
Old 10-10-2005, 01:26 PM   #2
Registered: Feb 2005
Location: Canada
Distribution: Debian Etch - Enlightenment E17
Posts: 116

Rep: Reputation: 15
man hwclock
Old 10-11-2005, 10:29 AM   #3
Jude Lucien
LQ Newbie
Registered: Jul 2005
Distribution: Debian Sarge
Posts: 18

Original Poster
Rep: Reputation: 0
I read the man page for hwclock but I am still unclear as to what exactly I need to do to set the system time correctly. I ran hwclock --hctosys but nothing happened, or if it did I don't know what it was.

I'm having trouble because I don't know how things should be configured. If I knew that I may be able to figure out how to make it happen and the hwclock manpage may make more sense to me.

Old 10-11-2005, 02:46 PM   #4
Senior Member
Registered: Jul 2005
Distribution: Slackware
Posts: 1,178

Rep: Reputation: 47
--hctosys = hardware clock -> system clock. Basically it sets the OS clock to match the hardware clock. If you want the opposite it can be achieved with

So if you want to set the time with date and save it it would be

date blah,blah (set the time)
hwclock --systohc (store the new system time to the hardware clock)


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie Help With Date & Time Jude Lucien Debian 2 10-11-2005 10:21 AM
Start Date + Time Duration = End Date/Time calculator? ToBe Linux - General 3 09-26-2005 10:17 AM
Problem with date & time kosmonaft Linux - General 3 08-17-2005 11:23 AM
Time & Date setting not sticking nathanv117 Linux - Newbie 3 04-10-2005 09:05 PM
Adjust Date & Time for all users Phaethar Red Hat 3 12-01-2003 01:35 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:36 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration