Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

At first i tried to change date to good one via gnome via 'Time and Date Settings' but when i clicked on calendar i couldn't change date. So i tried via console... date +%T -s "02:36:00" worked fine and time is set to it now... but date +%m%d -s "1019" returned old date instead of the one i'm trying to set... what's wrong?

share|improve this question

2 Answers 2

up vote 1 down vote accepted

It's happier with a format that's closer to the ISO standard year-month-day: eg. date -s "2009-10-19 13:30:00"

That would set it to 19th October 2009 at 1:30pm.

share|improve this answer

The format string only controls the output. You need to at least specify a time in your date.

date "10192125"

and optionally a year

date "101921252009"

To set only a time:

date -s "2125"
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.