LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-25-2010, 09:47 PM   #1
fcintron
Member
 
Registered: Oct 2010
Location: México
Distribution: Centos
Posts: 72

Rep: Reputation: 4
Difference between America/Mexico_City and Mexico/General timezone files...


I have a Centos 5.5 server and I had a problem with its time because it was 1 one hour ahead of my local time.

I installed and activated NTP and I created a link for /etc/localtime:

Code:
ln -sf /usr/share/zoneinfo/America/Mexico_City /etc/localtime
I reboot the server and waited for 1 hour but the time wasn´t correct.

The server's BIOS clock has UTC time so I edited /etc/sysconfig/clock file replacing:

Code:
UTC=false for
UTC=true
I reboot the server and waited for 1 hour but the time wasn´t correct.


After breaking my head for about 1 hour, I realized that there is a directory /usr/share/zoneinfo/Mexico and changed my link for /etc/localtime

Code:
ln -sf /usr/share/zoneinfo/Mexico/General /etc/localtime
And It worked.

After all I solved my issue but I have this question:

What is the difference between America/Mexico_City and Mexico/General files in /usr/share/timezones, they should be identical but of course they are not?


Thanks in advance for your kind help.

Last edited by fcintron; 11-25-2010 at 09:57 PM.
 
Old 11-26-2010, 04:17 PM   #2
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
They're different because time zones are political, not geophysical (otherwise there would be a straight line from pole-to-pole every 15 degrees of longitude and, well, there aren't).

Every country sets their own little goofy rules for the boundaries of time zones (whether they make sense or not).

Doesn't have to make sense, we just have to live with it.

Hope this helps some.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Hello from Mexico - Hola desde Mexico fryzer LinuxQuestions.org Member Intro 1 04-30-2008 02:52 PM
Segmentation error when trying to update timezone files r0r0s Linux - Newbie 1 03-03-2007 08:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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

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