How to Set the Timezone on Linux
Short answerOn Ubuntu, Debian, AlmaLinux, and Rocky Linux, use timedatectl to list timezones, set yours (for example America/New_York), then verify with timedatectl status and date. Keep network time sync enabled when available.
Overview
Correct timezone matters for logs, cron, TLS validation edge cases, and application timestamps. VPSGrid Linux VPS plans are unmanaged — you set the guest OS timezone yourself after SSH login.
1) Check the current time settings
timedatectl status
date
# optional: show UTC as well
date -u2) List available timezones
# browse interactively (q to quit)
timedatectl list-timezones | less
# or filter, examples:
timedatectl list-timezones | grep -i america
timedatectl list-timezones | grep -i europe
timedatectl list-timezones | grep -i asiaUse an Area/City name from the list (IANA timezone), not a casual label like “EST” alone.
3) Set the timezone
# example — replace with your zone
sudo timedatectl set-timezone America/New_York
# verify
timedatectl status
dateOther common examples: UTC, Europe/London, Asia/Karachi, Asia/Kolkata.
4) Keep the clock synchronized
Most modern images use systemd timesync / chrony. Confirm sync is on:
timedatectl status
# If "System clock synchronized" is no / NTP is inactive, enable:
sudo timedatectl set-ntp true
timedatectl statusExact NTP backend packages can differ by distribution; timedatectl set-ntp true is the usual first step on systemd systems.
Important notes
- Changing timezone does not move files; it changes how local time is displayed/interpreted
- Some apps cache timezone at start — restart services (web, DB, cron-dependent apps) if timestamps look wrong after the change
- The VPS hostname and DNS domain are separate from timezone settings
Frequently Asked Questions
Should I just use UTC?
UTC is a solid default for servers and multi-region apps. Use a local zone when you prefer human-local cron schedules and log reading.
timedatectl is missing
You are likely on a very minimal or non-systemd image. Stick to distributions offered at VPSGrid checkout; those normally include timedatectl.
Does this change billing invoices?
No. Client-area billing time is separate from the guest OS timezone.
Related Articles
Need More Help?
Open a ticket at billing.vpsgrid.net with your service ID, OS, and the output of timedatectl status.
¿Le ha resultado útil esta respuesta?