Posts

Showing posts with the label timezone

Changing the Time Zone in on Amazon Linux 2

Image
Before changing the time zone, you’ll need to find out the long name of the time zone you want to use. The time zone naming convention usually uses a   “Region/City”   format. To view all available time zones, use the  timedatectl command  or list the files in the  /usr/share/zoneinfo  directory: timedatectl list-timezones The  output  will be: ... America/Montserrat America/Nassau America/New_York America/Nipigon America/Nome America/Noronha ... Once you identify which time zone is accurate to your location, run the following command as root or sudo user: sudo timedatectl set-timezone <your_time_zone> For example, to change the system’s timezone to  Europe/Brussels  you would type: sudo timedatectl set-timezone Europe/Brussels To verify the change, invoke the timedatectl command again: timedatectl The  output  will be: Local time: Fri 2022-06-17 14:04:18 CEST Universal time: Fri 2022-06-17 12:04:18 UTC R...