Skip to main content

Set the system timezone based on IP geolocation

Project description

Tests LGTM Coverage Dependencies

tzupdate is a fully automated utility to set the system time using geolocation.

Usage

$ sudo tzupdate
Set system timezone to Europe/London.

Internally, this geolocates you, gets the timezone for that geolocation, and then updates the system’s local time zone.

You can also see what tzupdate would do without actually doing it by passing -p, and specify an alternative IP address by using -a. This is not an exhaustive list of options, see tzupdate --help for that.

Installation

To install the latest stable version from PyPi (recommended):

$ pip install -U tzupdate

To install the latest development code from GitHub:

$ pip install -U git+https://github.com/cdown/tzupdate.git@develop

Testing

$ tox
Ran 18 tests in 1.109s

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for tzupdate, version 1.5.0
Filename, size & hash File type Python version Upload date
tzupdate-1.5.0.tar.gz (5.5 kB) View hashes Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page