changing sys clock (PST to UTC)


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users changing sys clock (PST to UTC)
# 1  
Old 11-22-2006
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  
Old 11-22-2006
to reboot the system?
# 3  
Old 11-23-2006
Is this Linux? If so, what distro? Do you really have /etc/sysinfo? Do you have setclock?
# 4  
Old 11-23-2006
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 Smilie

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  
Old 11-23-2006
ok solved it
changed /etc/sysinfo/clock setting to
TIMEZONE="UTC"
DEFAULT_TIMEZONE="UTC"
and rebooted shutdown -r now
# 6  
Old 11-24-2006
Sounds Linux novice?

use "dateconfig"
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Programming

Interactive Python 3.5+ sys.stdout.write() AND sys.stderr.write() bug?

(Apologies for any typos.) OSX 10.12.3 AND Windows 10. This is for the serious Python experts on at least 3.5.x and above... In script format sys.stdout.write() AND sys.stderr.write() seems to work correctly. Have I found a serious bug in the interactive sys.stdout.write() AND... (2 Replies)
Discussion started by: wisecracker
2 Replies

2. Shell Programming and Scripting

Converting timestamp from PST to UTC

I need to convert the given datetime from PST to UTC, i gone through multiple forum examples but everywhere it mentioned about converting the server datetime. So could someone help me on this. I will be getting arguments for my script in the format of yyyymmddhh (eg:2015101004 - it will be pst),... (4 Replies)
Discussion started by: close2jay
4 Replies

3. Windows & DOS: Issues & Discussions

Reading MS Outlook pst file

I found a few products that claim to be able to recover deleted emails. Any recommendations? (1 Reply)
Discussion started by: jgt
1 Replies

4. UNIX for Dummies Questions & Answers

GMT to PST

99.60.97.205 - - GET /2009-03-29/world/impact.row.atlantic_1_rower-paul-ridley-cancer-research?_s=PM:WORLD HTTP/1.1 200 9386 www.abc.com Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.107 Safari/534.13 ... (4 Replies)
Discussion started by: sandy1028
4 Replies

5. Shell Programming and Scripting

Find and Convert UTC Time to PST Time

Hello All - I have a script that grabs data from the net and outputs the following data 46029 46.144 -124.510 2010 07 26 22 50 320 4.0 6.0 2.2 9 6.8 311 1012.1 -0.9 13.3 13.5 13.3 - - 46041 47.353 -124.731 2010 07 26 22 50 250 2.0 3.0 1.6 8 6.4 - 1011.6 - ... (0 Replies)
Discussion started by: drexnefex
0 Replies

6. Shell Programming and Scripting

GMT to PST

I have a file which is tab delimited, it contains the GMT date. Please tell me how to convert from GMT to PST time and if the date and time is of 2 days ago from the current date store the lines in a file or else remove the line. 10.1.10.178 - - - 10.1.10.178 - - ... (2 Replies)
Discussion started by: sandy1028
2 Replies

7. UNIX for Advanced & Expert Users

Linux sys date changing

Could anyone help me on related commands in linux for viewing the current date of system & any command for changing the date of system. Tanx --nikk (1 Reply)
Discussion started by: nikk
1 Replies
Login or Register to Ask a Question