Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cdown/tzupdate
Set the system timezone based on IP geolocation.
https://github.com/cdown/tzupdate
clock command-line command-line-tool geolocation geolocation-api linux mit-license rust rust-lang time time-clock timezone timezone-picker
Last synced: 4 days ago
JSON representation
Set the system timezone based on IP geolocation.
- Host: GitHub
- URL: https://github.com/cdown/tzupdate
- Owner: cdown
- License: mit
- Created: 2012-12-03T13:06:14.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2024-11-06T07:43:56.000Z (13 days ago)
- Last Synced: 2024-11-07T18:20:21.786Z (11 days ago)
- Topics: clock, command-line, command-line-tool, geolocation, geolocation-api, linux, mit-license, rust, rust-lang, time, time-clock, timezone, timezone-picker
- Language: Rust
- Homepage:
- Size: 202 KB
- Stars: 194
- Watchers: 9
- Forks: 19
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tzupdate | [![Tests](https://img.shields.io/github/actions/workflow/status/cdown/tzupdate/ci.yml?branch=master)](https://github.com/cdown/tzupdate/actions?query=branch%3Amaster)
tzupdate is a fully automated utility to set the system time using geolocation.
## Features
- Small, easy to understand codebase
- Queries multiple geolocation services in parallel and returns the first with
a successful result
- Protects against directory traversal and invalid results when linking
/etc/localtime## Installation
cargo install tzupdate
## Usage
# 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 see what tzupdate would do without actually doing it by passing `-p`,
and specify an alternative IP address by using `-i`. This is not an exhaustive
list of options, see `tzupdate --help` for that.