Change time winter=>summer | Unix Linux Forums | AIX

  Go Back    


AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

Change time winter=>summer

AIX


Tags
aix, unix

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 03-26-2013
Castelior Castelior is offline
Registered User
 
Join Date: Apr 2004
Last Activity: 26 June 2014, 10:02 AM EDT
Location: /FRANCE/Nantes
Posts: 96
Thanks: 12
Thanked 0 Times in 0 Posts
Change time winter=>summer

Hi!

I have forgotten to change the file /etc/environment on a server.
I had this ligne for TZ variable

Code:
TZ=NFT-1DFT,M3.4.0/2:00:00,M10.5.0/2:00:00

So, yesterday I had the wrong date

Yesterday I changed the hour to come back at the good hour and change /etc/environment by this lign

Code:
TZ=NFT-1DFT,M3.5.0/2:00:00,M10.4.0/2:00:00

This morning when I came back, I was at H-1

Do you have a explanation?
thx!
Sponsored Links
    #2  
Old 03-26-2013
MichaelFelt MichaelFelt is offline
Registered User
 
Join Date: Nov 2012
Last Activity: 11 December 2013, 7:33 AM EST
Location: on the road for work; home is private time
Posts: 311
Thanks: 6
Thanked 75 Times in 71 Posts
yes, ... M3.4.0 ... meant change DST value on fourth Sunday of March (which was last week) and ... M3.5.0 ... means change on fifth Sunday of March - which is 31 March this year.
When there are not 5 Sundays, the change is made on the fourth Sunday.
Sponsored Links
    #3  
Old 03-27-2013
Castelior Castelior is offline
Registered User
 
Join Date: Apr 2004
Last Activity: 26 June 2014, 10:02 AM EDT
Location: /FRANCE/Nantes
Posts: 96
Thanks: 12
Thanked 0 Times in 0 Posts
I changed it again yesterday. I don't have the error anymore.
I cross the fingers for the next weekend.

Thanks
    #4  
Old 03-27-2013
MichaelFelt MichaelFelt is offline
Registered User
 
Join Date: Nov 2012
Last Activity: 11 December 2013, 7:33 AM EST
Location: on the road for work; home is private time
Posts: 311
Thanks: 6
Thanked 75 Times in 71 Posts
The time on your system has never changed (that is an internal number).
To see how it looks to new users either login again, or type

Code:
$ date

  • modify TZ variable using set - or edit /etc/environment. If you edit /etc/environment, then

Code:
. /etc/environment
$ date

The last command gives the new presentation. Do not use the date command to change the time itself, just use the TZ variable to change the presentation of time of day.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
another whats on my mind!!! - winter waves pupp What is on Your Mind? 1 12-05-2008 05:54 AM
summer Time mktahar AIX 0 04-02-2006 04:14 AM
Winter/Summer time change bcheaib UNIX for Dummies Questions & Answers 0 09-20-2004 08:27 AM



All times are GMT -4. The time now is 06:24 PM.