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 Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
clock change markab2 UNIX for Advanced & Expert Users 0 10-31-2007 07:58 AM
clock() function kastrup_carioca High Level Programming 5 06-13-2005 10:05 AM
Why don't my clock show am or pm? CTroxtell21 Linux 2 11-13-2004 09:35 PM
Clock Trouble LolapaloL UNIX for Dummies Questions & Answers 2 11-09-2001 12:47 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-22-2006
OFFSIHR OFFSIHR is offline
Registered User
  
 

Join Date: Oct 2006
Posts: 23
changing sys clock (PST to UTC)

Hi
I'm trying to change my sys clock from PST to UTC.

I've read the man date page
it helpfully says :-
-u, --utc, --universal
print or set Coordinated Universal Time


as root I have tried date --universal, date -u, date --utc,

I have checked the /etc/sysinfo/clock file the variable HWCLOCK="-u" is set and I've deleted the local time variable settings.

Any ideas why it's not working? What have I forgotten?
Thanks
  #2 (permalink)  
Old 11-22-2006
reborg's Avatar
reborg reborg is offline Forum Staff  
Administrator
  
 

Join Date: Mar 2005
Location: Ireland
Posts: 4,209
to reboot the system?
  #3 (permalink)  
Old 11-23-2006
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,111
Is this Linux? If so, what distro? Do you really have /etc/sysinfo? Do you have setclock?
  #4 (permalink)  
Old 11-23-2006
OFFSIHR OFFSIHR is offline
Registered User
  
 

Join Date: Oct 2006
Posts: 23
hi sorry for delay in replying

SUSE LINUX Enterprise Server 9 (i586) - Kernel 2.6.5-7.191-default

I have /etc/sysconfig and clock but not setclock

The person who set up this sys originally didn't change time to UTC

Prior to reboot I added TZ to .profile, this did change the time to UTC for a non root user account but sys time(from root) is UTC

Thanks for reading this!

Last edited by OFFSIHR; 11-23-2006 at 06:09 AM..
  #5 (permalink)  
Old 11-23-2006
OFFSIHR OFFSIHR is offline
Registered User
  
 

Join Date: Oct 2006
Posts: 23
ok solved it
changed /etc/sysinfo/clock setting to
TIMEZONE="UTC"
DEFAULT_TIMEZONE="UTC"
and rebooted shutdown -r now
  #6 (permalink)  
Old 11-24-2006
sumitpandya sumitpandya is offline
Registered User
  
 

Join Date: Mar 2006
Location: Ahmedabad
Posts: 125
Sounds Linux novice?

use "dateconfig"
Closed Thread

Bookmarks

Tags
linux

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 12:52 PM.


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