LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > VectorLinux
User Name
Password
VectorLinux This forum is for the discussion of VectorLinux.

Notices


Reply
  Search this Thread
Old 07-30-2012, 12:56 AM   #1
newbiesforever
Senior Member
 
Registered: Apr 2006
Distribution: MX (desktop: XFCE 4)
Posts: 2,101

Rep: Reputation: 77
setting the clock


I can't figure out how to set the clock in VectorLinux (with XFCE), and I need to--it's displaying the wrong time (even though it's set to the correct timezone). Neither left-clicking nor right-clicking on the clock offers an option to change the time.
 
Old 07-30-2012, 07:56 AM   #2
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060
You set the clock with the date utility (as root) in a terminal window.

The form is, for setting the clock to local time,
Code:
date -s "STRING"
where STRING is
Code:
"13:20:30"
to set the time of day (24-hour!).

If your system clock is set to UTC and you want to set the clock to 13 hours, 30 minutes and 30 seconds UTC you would
Code:
su - (or sudo)
date -u -s "13:30:30"
Note that the display time will be your local time, not UTC (unless, of course, your time zone is 0 degrees longitude, eh?).

See the manual page for date or info coreutils 'date invocation' for more information.

Hope this helps some.
 
1 members found this post helpful.
Old 07-30-2012, 11:34 AM   #3
newbiesforever
Senior Member
 
Registered: Apr 2006
Distribution: MX (desktop: XFCE 4)
Posts: 2,101

Original Poster
Rep: Reputation: 77
Got it. Thank you. The desktop clock display takes some time to adjust.
 
Old 07-30-2012, 02:00 PM   #4
nixblog
Member
 
Registered: May 2012
Posts: 426

Rep: Reputation: 52
You should also be able to use vzoneset in Vector to change UTC to local time.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
setting bios clock? skoinga Linux - General 3 09-28-2010 05:32 AM
SUSE 9.3 clock setting ionmich SUSE / openSUSE 1 10-17-2005 12:50 PM
setting the clock dasy2k1 Linux - Newbie 6 10-08-2005 02:19 PM
setting the hardware clock.. kurrupt Linux - Hardware 1 08-25-2004 11:00 PM
Setting Clock ArthurDent Linux - Newbie 2 03-27-2004 07:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > VectorLinux

All times are GMT -5. The time now is 02:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration