SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
So Daylight savings time I believe it is ended a couple days ago. My clock is still 1 hour ahead on my linux machine. I am not set up as hardware clock is set to UTC (like to refrain from it too if possible) and my timezone is currently set to ETC/GMT -5
I live in Maine so I'm assuming that is the correct time zone there are several others I've seen used for our timezone before like America/New York US/Eastern are 2 other common ones but those make my clock 3 hours ahead which is worse. I've done some reading on this and I'M REALLY CONFUSED. Any help here would be appreciated thank you!
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541
Rep:
Are you by any chance dual booting Windows?
If so, get into Windows and get into Control Panel, Date and Time, Time Zone and un-check Automatically adjust clock for daylight savings. That way, Linux will do the saylight changes and you won't have Windows adding an hour.
If you're going to be using MySQL and PHP, you do want to select a specific place-name from the list presented when you run timeconfig; If you're in the eastern time zone, selecting New York is just fine; do that before you do what @mudangel recommends and you ought to be good to go.
any of those tz is fine, just enable your ntp daemon /etc/rc.d/rc.ntpd and setup your ntp.conf and your time will sync up with the time source when you are online, i don't have to adjust anything when time changed over the weekend
Quote:
Originally Posted by mudangel
You could do something like
Code:
ntpdate <IP of local time server>
hwclock --systohc --utc
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541
Rep:
Note that you only need to do
Code:
ntpdate <IP of local time server>
hwclock --systohc --utc
once (to get the software clock and the hardware clock set to the correct time). After that, get NTPD running and it will keep your clocks accurate whenever you've got a network connection.
A workable configuration for NTPD (in /etc/ntp.conf) might be
Code:
server 127.127.1.0 # local clock
fudge 127.127.1.0 stratum 10
#server pool.ntp.org
server 0.us.pool.ntp.org
server 1.us.pool.ntp.org
server 2.us.pool.ntp.org
(in the server section near the top of the file); you don't really need to set anything else in a stock Slackware /etc/ntp.conf.
Not dual booting with windows not yet I plan to later but stilll iffy if I want to deal with some of the issues that can arise from that. and if you give me a moment I will go through this a little more and see what I can get to work for me if not I guess I'll deal with this issue I could adjust but between clocks in my life being different then the computer it's gonna be tough. Thanks guys lets see what we can accomplish here
So whenever I do ntpdate serveraddress then it tells some time and date ntpdate[2857]: the NTP socket is in use, exiting
Last edited by fatalerror0x00; 11-10-2012 at 05:43 PM.
The timezone distinguishes between normal time and daylight saving time (ok, that was clear), when you execute the date command, you should see if the clock is set to normal or daylight-saving. For example here in Germany we have CET (central European time) but during daylightsavin-time it's shown as CEST (central European summertime).
Sat Nov 10 18:42:33 GMT-5 2012 or whatever the time zone should say but on every other operatin system I feel like GMT-5 doesn't handle DST but any other time zone I choose screws up my time and makes it like 6 hours more then it should be right now. do I maybe need to do a restart after changing time zones for it to take effect properly?
Thats what I'm talking about if i use timeconfig i would select from US and my time zone to select would be Eastern but some reason when I change to Eastern if I remember properly it is like 6 hours more then it is
I will try this again though in a few minutes maybe it's just me -.- I was extremely tired that night and maybe i was doing my math all wrong but i swear I double checked and triple checked :P
haha alright i keep forgetting they have man pages for like everything I keep thinking man pages are very limited -.- should have looked there first out of anything
alright dude
So if i set my time zone to US/Eastern my computer now thinks it's 10:12:17 in the morning -.- I am not finding a timezone man page -.- anyone care to specify a manpage for what he was refering too so i may look at it
Last edited by fatalerror0x00; 11-10-2012 at 06:10 PM.
Now you have the right time zone set you could shutdown, power up, enter the BIOS setup screens and set the real time clock (RTC) to GMT. That should work until you install Windows.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.