LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 04-05-2005, 11:35 AM   #1
Saxton
LQ Newbie
 
Registered: Apr 2005
Posts: 12

Rep: Reputation: 0
Disabling auto conversion to daylight savings time


Is it possible to disable Red Hat 9.0 from automatically going into daylight savings mode? We have created several LAMP apps that get screwed up when going from standard time to daylight savings time.

Thanks.
 
Old 04-05-2005, 04:52 PM   #2
Saxton
LQ Newbie
 
Registered: Apr 2005
Posts: 12

Original Poster
Rep: Reputation: 0
Solved.

Turns out this is a multi-step process in Linux involving creating a text file with new time zone rules, running it against 'zic' ( as in -- zic newRules.tx ), then soft linking the output file to /etc/localtime.

See this link:
http://avi.alkalay.net/linux/docs/Ti....html#tz.linux

about which the author was kind enough to respond, and see 'man zic' for more basic info and some additional examples.

--> Saxton
 
Old 02-11-2009, 04:32 PM   #3
Sanford Stein
Member
 
Registered: Jun 2008
Location: Evanston, Illinois
Distribution: RHEL 6.4
Posts: 126

Rep: Reputation: 17
The link posted by Saxton contains the text:
"Later we'll see how to enable and disable DST automatically in Linux."
but the actual explanation is not present.

'man zic' shows how to set up a rule to enable automatic daylight savings time conversion but not how to disable a currently existing rule. (For starters, it would be helpful to know where the file of current rules could be found.)

Anyway, if anyone knows a straightforward way to disable automatic setting of daylight savings time, I would be appreciative. We are running RHEL 5.2. (We have a lot of system stuff running at 3AM and want to do the change during our normal downtime window of 9AM-noon
on Sunday.)

Thanks,
Sanford Stein
 
Old 02-12-2009, 08:13 AM   #4
Saxton
LQ Newbie
 
Registered: Apr 2005
Posts: 12

Original Poster
Rep: Reputation: 0
Sanford,

Here is part of the document I wrote up to remind myself how to do it:

// create noDST4me file in /usr/share/zoneinfo/America/
// start_file:

# Rule Name From To Type In On At Save Letter/s
Rule NeutronDB 2004 maximum - Apr 1 0:00 0 S

# Zone Name GMTOff Rules/Save Format Until
Zone America/Chicago -6:00 NeutronDB C%sT

// end_file:


// then run from command line:
linux_prompt> zic noDST4me

// This compiles and installs the rule in noDST4me into America/Chicago.

// Since the rule has been set for America/Chicago within noDST4me,
// it is America/Chicago that is soft linked to /etc/localtime:
ln -sf /usr/share/zoneinfo/America/Chicago /etc/localtime

linux_prompt> ls -al /etc/localtime
linux_prompt> /etc/localtime -> /usr/share/zoneinfo/America/Chicago

I would first save the old timezone file by renaming it before overwriting with a new rule declared.

Hope this gets you started.

David
 
  


Reply


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
Turning Off Daylight Savings Time troy.porter Red Hat 1 03-10-2007 12:02 PM
Daylight savings time Jeebizz Slackware 13 11-21-2005 08:08 PM
NTP and Daylight Savings Time jrdioko Linux - Software 8 11-01-2005 09:25 AM
Daylight Savings Time and Linux cereal83 Linux - General 6 10-31-2005 05:28 PM
Daylight savings time Problem bogus__13 Linux - General 1 04-04-2005 10:09 PM


All times are GMT -5. The time now is 11:15 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration