LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 06-26-2017, 06:56 AM   #1
orbegonzo
LQ Newbie
 
Registered: Sep 2015
Location: Spain
Posts: 10

Rep: Reputation: Disabled
Question Strange time zone displayed in CentOS 6.7


Hi everyone,

Some time ago, I installed Centos 6.7 Minimal on seven computers at the office. During the installation process, I set the timezone to "Chile/Santiago" using the installation assistant, and I disabled the use of UTC. I also configured the NTP service.

Everything worked OK for months, but last week, when I ran a certain programme in one of the computers, I did realise that there was a one hour offset in the date displayed in the programme logs. I ran the programme in the other six computers, and there was no problem regarding the date displayed.

At first I thought that maybe the system time was wrong, so I checked it, and this is what I got:

Code:
#date
Mon Jun 26 07:38:11 -04 2017
The date is right, but I'm surprised about the time zone, because it shows "-4", instead of "CLT", which is the time zone that the other computers display:

Code:
#date
Mon Jun 26 07:39:13 CLT 2017
I don't if that would be the origin of the problem (since technically CLT should be equivalent to -4), but still, I don't understand why the displayed differs. I have tried to sync the time using NTP and to update the tzdata package, but the time zone keeps the same.

Any idea about why the time zone is different?

Best regards.
 
Old 06-26-2017, 11:36 AM   #2
Demosa
Member
 
Registered: Feb 2013
Distribution: Fedora 25, RHEL7, RHCI stack
Posts: 38

Rep: Reputation: Disabled
This is going to be a little bit crazy/out there but... chile and time zones. -4 means not observing daylight savings time, just a fixed time zone. CLT implies observing daylight savings time (or in Chilean terms, summer and winter time).

And well, who knows what time it is in Chile? (For the curious, the wikipedia article https://en.wikipedia.org/wiki/Time_in_Chile highlights some of the time changes, which are very chaotic by modern timezone standards)

So... no idea, really. It depends on when your installation media was created.

Look in /etc/sysconfig/clock and see what the ZONE entry is in each server. My guess would be that something's different in there.
 
Old 06-29-2017, 04:28 PM   #3
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Compare with
Code:
export TZ=America/Los_Angeles ; date
 
Old 06-30-2017, 03:44 AM   #4
orbegonzo
LQ Newbie
 
Registered: Sep 2015
Location: Spain
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Habitual View Post
Compare with
Code:
export TZ=America/Los_Angeles ; date
Hello,

This is what I get:

Code:
[root@localhost ~]# export TZ=America/Los_Angeles ; date
Fri Jun 30 01:39:43 PDT 2017
If then I set the Chile/Santiago time again, the result is the same as before:

Code:
[root@localhost ~]# export TZ=America/Santiago ; date
Fri Jun 30 04:41:17 -04 2017
I have also checked that in the rest of the the computers (which work OK), the value of TZ is empty.

Best regards
 
  


Reply



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
Problem with zone-info in time zone data section Chapter-6.9 Glibc-2.24 koustubh Linux From Scratch 2 07-08-2020 04:38 PM
I find file zone in the slave zone to the do a transfer of zone from Windows Server 2012 as master dns and CentOS as slave DNS. To learn Linux - Newbie 1 09-02-2016 09:36 AM
LXer: How to set up time zone on CentOS 7 LXer Syndicated Linux News 0 06-04-2016 11:09 PM
Run script in EST time zone but server is in GMT zone jeesun Linux - Networking 1 04-04-2010 01:37 PM
CentOS Time Zone Issue & SpamAssassin? alfista Linux - Server 14 01-17-2008 07:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 09:21 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