Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have been using local time hardware clock because of sharing the machine with a Windows system. Now I don't use Windows any actively and would like to set the hardware clock to UTC. How to reconfigure this in Ubuntu?

PS: I use XUbuntu actually, so I'd like a command-line-based desktop-agnostic solution.

share|improve this question

1 Answer 1

Edit the file /etc/default/rcS with your favorite text editor, ie:

sudo nano /etc/default/rcS

enter image description here

Look for the UTC=foo (yes/no) line and change it to UTC=yes.

From the rcS(5) man page:

UTC
This is used to govern how the hardware real time clock is interpreted when it is read (e.g., at boot time, for the purpose of setting the system clock) and when it is written (e.g., at shutdown). If this option is set to no then the system clock is assumed to be set to local time. If the option is set to yes then the system clock is assumed to be set to something approximating Coordinated Universal Time (UTC). (POSIX systems keep a variant of UTC, without leap seconds.)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.