tzupdate
Set system timezone automatically via IP geolocation
TLDR
Automatically set system timezone
$ tzupdate
Print detected timezone without applying$ tzupdate -p
Detect timezone for a specific IP$ tzupdate -i [8.8.8.8]
SYNOPSIS
tzupdate [options]
DESCRIPTION
tzupdate geolocates your IP address, determines the correct timezone, and updates the system's local timezone. It queries geolocation services and protects against invalid results. Useful for automatically configuring timezone on servers or fresh installations. Typically requires root privileges to update the system timezone.
PARAMETERS
-p
Print the detected timezone without changing system settings-i IP
Use the specified IP address instead of auto-detecting
HISTORY
tzupdate was created by cdown and is written in Rust (formerly Python).
SEE ALSO
timedatectl(1), date(1), tz(1)
