Skip to content

Instantly share code, notes, and snippets.

@juanfdovilla
Created February 10, 2025 22:06
Show Gist options
  • Select an option

  • Save juanfdovilla/c244fbaae692e6016eb0edf8f8497598 to your computer and use it in GitHub Desktop.

Select an option

Save juanfdovilla/c244fbaae692e6016eb0edf8f8497598 to your computer and use it in GitHub Desktop.
Update the timezone System
Step 3: Update the System
Before making any changes, it’s a good practice to update your system to ensure all packages are up to date. Run the following command:
apt update
Step 4: Check Current Timezone
Check the current timezone settings on your server:
timedatectl
This command will display the current timezone along with other time and date information.
Step 5: List Available Timezones
To list all available timezones, use the following command:
timedatectl list-timezones
If you are looking for a specific timezone, you can filter the list using grep. For example, to find timezones related to Berlin:
timedatectl list-timezones | grep "Berlin"
Step 6: Set the Timezone
Once you have identified the correct timezone, set it using the timedatectl command. For example, to set the timezone to Europe/Berlin:
timedatectl set-timezone Europe/Berlin
Step 7: Verify the Timezone
Verify that the timezone has been set correctly:
timedatectl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment