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.

when I go to change the date and time it doesn't work, and I try to unlock but it just won't unlock, if there is any way to make it work please help. I know it isn't very descriptive but I really would like some answers. thank you

share|improve this question

3 Answers 3

From man date

-s, --set=STRING
          set time described by STRING

To change date, use the command in terminal,

sudo date --set=STRING

For example, to change date to 25 Sep 2013 15:00, the command would be,

sudo date --set "25 Sep 2013 15:00:00"
share|improve this answer
    
Does it also work if system is rebooted or it has to be apply every time after reboot? –  YumYumYum Apr 30 at 3:20
1  
Yes, it works after system reboot; you wouldn't have to apply it every time. –  kern May 1 at 5:35

In 12.04 I don't have to Unlock anything. Just click on the clock on the top bar, and choose Time & Date Settings, once the Time & Date window opens, choose Manually, so you can change the time and date manually; otherwise choose your time zone from the map, and choose Automatic.

enter image description here

enter image description here

share|improve this answer
1  
I am not able to change my system's time this way. I can change the time from the settings but it is not reflecting on my top bar. –  roopunk Jun 26 at 10:50
    
It takes a while (+30 secs), but the top bar does update after sometime. (Ubuntu 14.04) –  shxfee Oct 25 at 19:37

I had similar issue on my install and the above command gave this error:

date: the argument '19 Sep 2014 20:11:00' lacks a leading '+';
when using an option to specify date(s), any non-option
argument must be a format string beginning with '+'
Try 'date --help'

Help shows -

Usage: date [option]...  [+FORMAT] - (etc)

Added the required plus as indicated to render +19 Sep 2014 20:11:00 which worked.

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.