To configure the time and date of the system, follow these steps:
Open the terminal by pressing
Ctrl+Alt+T
on your keyboard.Type the following command to open the time and date settings:
1
timedatectl set-timezone [timezone]
Replace
[timezone]
with the name of your time zone (e.g.,America/New_York
). You can find a list of available time zones by typing:1
timedatectl list-timezones
Set the date and time by running the following command:
1
sudo timedatectl set-time [yyyy-mm-dd hh:mm:ss]
Replace
[yyyy-mm-dd hh:mm:ss]
with the actual date and time you want to set in the following format:year-month-day hours:minutes:seconds
. For example, to set the time to August 1, 2021, 12:00 PM, you would enter:1
sudo timedatectl set-time 2021-08-01 12:00:00
Verify that the time and date are correct by running the following command:
1
timedatectl
This will display the current time, time zone, and other settings.
Note: Updating the system time and date may require administrator privileges (sudo). Also, it’s recommended to synchronize the system time with a time server using an NTP (Network Time Protocol) client to ensure accuracy.ges.
hanges.