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.

Source Distribution

tzupdate-2.1.0.tar.gz (6.3 kB view details)

Uploaded Source

File details

Details for the file tzupdate-2.1.0.tar.gz.

File metadata

  • Download URL: tzupdate-2.1.0.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for tzupdate-2.1.0.tar.gz
Algorithm Hash digest
SHA256 5b55795c390e4ccc90e649c8cc387447daaf30a21d68f7196b49824cbcba8adc
MD5 eb7ceb215190cae62499aae06454c1f2
BLAKE2b-256 b75c7d53fcd9b7b6bb51b7193203395cb35a250024f89d16f57d1bddecf28679

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page