How to change date and timezone in linux

To change date:

date -s "18 JUN 2013 12:22:00"

To change timezone:

sudo dpkg-reconfigure tzdata

 

NOTE: After changing linux date/time/timezone make sure you restart cron with:

/etc/init.d/cron stop
/etc/init.d/cron start

#or in Ubuntu/Debian based OS's

service cron stop
service cron start

 

You may also like...

Leave a Reply