Skip to content

vladc/tzupdate

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
Detected timezone is Europe/Dublin.
Linked /etc/localtime to /usr/share/zoneinfo/Europe/Dublin.

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

Test status Coverage Code quality

tox -e quick

About

Set the system timezone based on IP geolocation

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%