LinuxCommandLibrary

tzupdate

Set system timezone automatically via IP geolocation

TLDR

Automatically set system timezone
$ tzupdate
copy
Print detected timezone without applying
$ tzupdate -p
copy
Detect timezone for a specific IP
$ tzupdate -i [8.8.8.8]
copy

SYNOPSIS

tzupdate [options]

DESCRIPTION

tzupdate geolocates your IP address, determines the correct timezone, and updates the system's local timezone. It queries multiple geolocation services in parallel and protects against invalid results. Useful for automatically configuring timezone on servers or fresh installations.

HISTORY

tzupdate was created by cdown and is written in Rust (formerly Python).

SEE ALSO

timedatectl(1), date(1), tz(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard