The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Time Zone - Day Light Savings photon Shell Programming and Scripting 2 08-27-2007 09:30 PM
Sun Solaris 4 - Need to know zone setting procedure. Please help! nkpalkar SUN Solaris 6 07-25-2007 01:23 PM
Time Zone in AIX and cronjobs run_time_error AIX 1 04-28-2006 06:42 AM
time zone and cron solaris 9 MizzGail UNIX for Dummies Questions & Answers 2 10-18-2005 12:38 PM
Change params for time zone agustincm UNIX for Advanced & Expert Users 7 04-05-2005 04:40 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-31-2002
sanjay_g sanjay_g is offline
Registered User
  
 

Join Date: May 2002
Posts: 7
Time zone setting

Tru64 (4.0D)

How to change the time zone setting for the system?

Sanjay
  #2 (permalink)  
Old 07-31-2002
peter.herlihy peter.herlihy is offline
Registered User
  
 

Join Date: Nov 2001
Location: New Zealand
Posts: 333
Read man page for TIMEZONE and timezone.

You can also change the TZ used within the current shell by exporting TZ.
  #3 (permalink)  
Old 07-31-2002
sanjay_g sanjay_g is offline
Registered User
  
 

Join Date: May 2002
Posts: 7
Hi peter,

I ran timezone as root and selected my location.
But when i see date it still shows the previous timezone. Do I need to reboot the box?

Regards,
Sanjay
  #4 (permalink)  
Old 07-31-2002
peter.herlihy peter.herlihy is offline
Registered User
  
 

Join Date: Nov 2001
Location: New Zealand
Posts: 333
Shouldn't need to..... do an 'env' and see what your timezone is stating.

Try - as any user
date (this will show current date/time and timezone
export TZ=GMT (this will change to GMT)
date ( will show new timezone in GMT)

Changing the system TZ...(in the /etc/default/init file for my system SunOS 5.6) should make the new timezone be set. Users will probably have to exit and signon but you won't have to reboot box.

You may have a TZ setting in the users profile.....this would cause it to differ from the system one...check the .profile file inthe users home directory.

A few things to try anyway.
  #5 (permalink)  
Old 07-31-2002
sanjay_g sanjay_g is offline
Registered User
  
 

Join Date: May 2002
Posts: 7
Hi Peter,

Yes, I want to change the system timezone. There is no TZ parameter set in the root profile.
The file /etc/default/init doesn't exist for Tru64.

Sanjay
  #6 (permalink)  
Old 07-31-2002
peter.herlihy peter.herlihy is offline
Registered User
  
 

Join Date: Nov 2001
Location: New Zealand
Posts: 333
Do you have man pages for TIMEZONE and timezone....for your setup? they should tell you where you can find the TZ variable setting for the system.

/etc/timezone...or /etc/TIMEZONE...might be somewhere to look....?
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 01:59 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0