Quick way to correct timezone in Debian

I ran across an issue with my time not being correct on one of my debian servers. It was reflecting an incorrect time zone. After some quick research I found a really easy way to correct this using the command line. At the command prompt type dpkg-reconfigure tzdata , then hit enter, so your command prompt should look like the following.

debian#dpkg-reconfigure tzdata ( you must have root privileges to execute this command)

Just select your country and what time zone region you are located in then hit OK and you are all done.

You can check your updated time with the date command.


Comments are closed.

%d bloggers like this: