The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
changing nfs options on Solaris 10 melanie_pfefer SUN Solaris 2 05-07-2008 02:05 AM
changing ip and hostname on solaris murad.jaber SUN Solaris 10 02-23-2008 07:04 AM
[help] changing time on solaris 8 sparc bucci SUN Solaris 2 07-25-2007 08:17 PM
Timezone oss UNIX for Advanced & Expert Users 7 10-19-2005 11:20 PM
timezone eddyvdv UNIX for Dummies Questions & Answers 1 04-08-2002 02:46 PM

Closed Thread
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-17-2002
Registered User
 

Join Date: Oct 2001
Posts: 61
Stumble this Post!
TimeZone changing in Solaris

I've date back one of my Unix WS ,after that again i want to return to real date,but after running:
# date -u mmddHHMMyy
the clock immediately returns to GMT timezone that is different with my local timezone.
any suggestion could be useful...
tanx
--nikk
Forum Sponsor
  #2 (permalink)  
Old 12-17-2002
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,446
Stumble this Post!
The system clock is kept in UTC. When a date is displayed to you it is formatted according to your TZ environment variable. It sounds like you need to reset your TZ environment variable to your value. TZ is often set for each user in the startup scripts for the user's shell. On Sun's a system-wide default is set by the login program based on the the file /etc/default/login.
  #3 (permalink)  
Old 12-17-2002
Registered User
 

Join Date: Oct 2001
Posts: 61
Stumble this Post!
I found the answer ,my problem was that i used
"date -u ",which returns date to GMT regardless of local setting,we should use "date "without u switch instead of that.

Rgrds,
nikk
Google The UNIX and Linux Forums
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 03:26 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0