Skip to main content

Time Settings

When the Linux system starts, it automatically synchronizes the network time, but it uses the UTC (London time) by default. For use in China, you need to change the timezone to Asia/Shanghai so that the date command returns the correct time.

Run the command:

sudo dpkg-reconfigure tzdata

Select Asia and press Enter. time1

Select Shanghai and press Enter. time2

After configuration, you can use the date command to check the time:

date

time3