LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-30-2008, 12:50 AM   #1
r_etemaadi
LQ Newbie
 
Registered: Apr 2008
Posts: 3

Rep: Reputation: 0
Change timezone DST


I'm using webmin on fedora. And set the time sync with a ntp pool (asia.pool.ntp.org) but in my timezone (Tehran) now daylight saving is active but it is not active in time synchronization.
I found a file in (/use/share/zoneinfo) in folder Asia that named Tehran, how can I change that to correct settings?
 
Old 04-30-2008, 01:08 AM   #2
blacky_5251
Member
 
Registered: Oct 2004
Location: Adelaide Hills, South Australia
Distribution: RHEL 5&6 CentOS 5, 6 & 7
Posts: 573

Rep: Reputation: 61
There is a graphical tool in Fedora that lets you define the timezone you live in. The effect of the tool is to change the file /etc/localtime to point to the appropriate file in /usr/share/zoneinfo. You can achieve the same thing by manually linking your timezone file into /etc like this:-
Code:
ln -s /usr/share/zoneinfo/Asia/Tehran /etc/localtime
The Tehran file should have been created with daylight savings in mind.
 
Old 04-30-2008, 01:26 AM   #3
r_etemaadi
LQ Newbie
 
Registered: Apr 2008
Posts: 3

Original Poster
Rep: Reputation: 0
I know that Tehran file should have daylight saving in itself. But it hasn't this setting. How can I change it and put this setting in file?
 
Old 04-30-2008, 01:58 AM   #4
blacky_5251
Member
 
Registered: Oct 2004
Location: Adelaide Hills, South Australia
Distribution: RHEL 5&6 CentOS 5, 6 & 7
Posts: 573

Rep: Reputation: 61
As you've probably worked out, these files are binary files and have been created by compiling timezone data using specific software. To be frank, I don't know how to edit the source files or what the program is that creates the binary files for distribution.

Is DST new in Tehran or has it been used for a long time? If it is new then you can probably download an update to the zoneinfo data files. If it has been used for a long time, then perhaps you should lodge a bugzilla report to Fedora about the fact.

Which version of Fedora are you using?
 
Old 04-30-2008, 02:03 AM   #5
blacky_5251
Member
 
Registered: Oct 2004
Location: Adelaide Hills, South Australia
Distribution: RHEL 5&6 CentOS 5, 6 & 7
Posts: 573

Rep: Reputation: 61
Check this out: - http://www.cs.cmu.edu/~help/dst/sola...x_systems.html

And run -
Code:
man zic

Last edited by blacky_5251; 04-30-2008 at 02:06 AM.
 
Old 05-01-2008, 12:27 AM   #6
r_etemaadi
LQ Newbie
 
Registered: Apr 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks a lot for your hints dear sir,

I update tzdata package and the problem solved.
 
  


Reply

Tags
timezone



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
how to change timezone through system call shivakumar.a Linux - Newbie 1 02-15-2008 06:15 AM
DST Time Change in Australia not working prpersonal Linux - General 6 10-11-2007 04:58 PM
DST Change and Slack 9.1 wczimmerman Slackware 4 02-22-2007 10:20 AM
Change timezone using date davholla Linux - General 16 11-09-2005 02:53 AM
How to configure TimeZone to change automatic .. piraxter Slackware 1 04-09-2003 11:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:25 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration