LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > AIX
User Name
Password
AIX This forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.

Notices


Reply
  Search this Thread
Old 03-18-2014, 12:46 AM   #16
geekslinux
Member
 
Registered: Jun 2013
Posts: 63

Original Poster
Rep: Reputation: Disabled

Hi,

As pointed by you the AIX server is 1 hour behind Linux server in GMT. I am confused as to how the server is showing wrong GMT.

AIX

<dr-new><root>/# date
Tue Mar 18 10:58:34 IST 2014
<dr-new><root>/# date -u
Tue Mar 18 04:28:37 GMT 2014


LINUX
root ~ # date
Tue Mar 18 10:55:37 IST 2014
root ~ # date -u
Tue Mar 18 05:25:39 UTC 2014


I have made the required changes in the environment file (replaed TZ=IST-5:30IST with TZ=IST-5:30);asked for downtime to reboot the server this week end. I thank you very much for helping me to resolve the issue. Once it's done I will update.

Last edited by geekslinux; 03-18-2014 at 12:47 AM.
 
Old 03-31-2014, 08:58 AM   #17
geekslinux
Member
 
Registered: Jun 2013
Posts: 63

Original Poster
Rep: Reputation: Disabled
Hi cliffordw,

Sorry for the delayed response; after removing the trailing IST, I have rebooted the server and gave ntpdate. Now the time runs behind(trailing) the clock by an hour. Also the xntpd daemon dies in 5 minutes. Can you please throw some light on this. Thanks in advance.
 
Old 03-31-2014, 01:13 PM   #18
cliffordw
Member
 
Registered: Jan 2012
Location: South Africa
Posts: 503

Rep: Reputation: 189Reputation: 189
Hi,

Could you please run the following on the AIX server again, and post the output:

Code:
echo $TZ
date -u
TZ=IST-5:30 date
TZ=Asia/Kolkata date
Thanks
 
Old 04-01-2014, 02:45 AM   #19
geekslinux
Member
 
Registered: Jun 2013
Posts: 63

Original Poster
Rep: Reputation: Disabled
Hi,

PFB results,

<dr-new><root>/# echo $TZ
IST-5:30IST
<dr-new><root>/# date -u
Tue Apr 1 04:55:51 GMT 2014
<dr-new><root>/# TZ=IST-5:30 date
Tue Apr 1 10:26:43 IST 2014
<dr-new><root>/# TZ=Asia/Kolkata date
Tue Apr 1 10:27:03 IST 2014
 
Old 04-01-2014, 08:45 AM   #20
cliffordw
Member
 
Registered: Jan 2012
Location: South Africa
Posts: 503

Rep: Reputation: 189Reputation: 189
Hi,

The $TZ value is still wrong. It should be IST-5:30 only, not IST-5:30IST.

Regards,

Clifford
 
1 members found this post helpful.
Old 04-01-2014, 08:50 AM   #21
cliffordw
Member
 
Registered: Jan 2012
Location: South Africa
Posts: 503

Rep: Reputation: 189Reputation: 189
Hi again,

You said earlier:

Quote:
Originally Posted by geekslinux View Post
I have made the required changes in the environment file (replaed TZ=IST-5:30IST with TZ=IST-5:30)
I assume you mean the /etc/environment file. If so, it is possible that $TZ is also sent elsewhere (possibly /etc/profile or /.profile). I'd suggest you look there too. Before you reboot again, you can verify that it is set correctly after making the config changes by simply logging out & back in, and then running "echo $TZ".

I hope this helps :-)

Last edited by cliffordw; 04-01-2014 at 08:50 AM. Reason: typo
 
Old 04-01-2014, 08:52 AM   #22
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,075

Rep: Reputation: 1475Reputation: 1475Reputation: 1475Reputation: 1475Reputation: 1475Reputation: 1475Reputation: 1475Reputation: 1475Reputation: 1475Reputation: 1475
Note: IST-5:30IST suggest you have daylight saving in effect. use TZ=IST-5:30 or TZ=IST-5:30IST-5:30 (if you want to be verbose)
 
  


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
How to make my system time to sync with ntp server without using client software? ybsshweta Linux - Newbie 14 01-30-2013 06:24 AM
Unable to sync time NTP server Rohit_4739 Linux - Newbie 5 04-10-2012 08:44 AM
[SOLVED] Slackware server - ntp time sync stops after a day tennis_slacker Slackware 81 08-04-2010 09:05 AM
ntp time off by 1 hour schneidz Linux - Software 8 03-16-2008 10:30 PM
Time jumps by 1 day for an hour, then jumps back on RH 9? dieyouspammer Red Hat 3 04-07-2006 12:18 PM

LinuxQuestions.org > Forums > Other *NIX Forums > AIX

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