Skip to main content

Set the system timezone based on IP geolocation

Project description

Tests Coverage Dependencies

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

Usage

By default, tzupdate will geolocate you, get the timezone for that geolocation, and then attempt to link that timezone to /etc/localtime. You can pass -p to print the detected timezone without linking. You can also pass -a to pass an IP address to use, instead of geolocating you.

$ sudo tzupdate
Set system timezone to Europe/London.

Installation

To install the latest stable version from PyPi:

$ pip install -U tzupdate

To install the latest development version directly from GitHub:

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

Testing

$ pip install tox
$ tox
..........
----------------------------------------------------------------------
Ran 10 tests in 4.088s
OK

Project details


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
tzupdate-1.2.0.tar.gz (5.0 kB) Copy SHA256 hash SHA256 Source None Mar 17, 2017

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 DigiCert DigiCert EV certificate StatusPage StatusPage Status page