GitXplorerGitXplorer
c

tzupdate

public
209 stars
19 forks
8 issues

Commits

List of commits on branch master.
Unverified
0fefa7516581c7ac9f3337facc89a3ebfd6e581a

deps: Update

ccdown committed 2 months ago
Unverified
51800713e98e97633db10b334665dad3bd69567f

build(deps): bump clap from 4.5.20 to 4.5.21

ddependabot[bot] committed 2 months ago
Unverified
346f4e70436f4a264afda1f985529823bbb0aa39

ci: Add MSRV check

ccdown committed 2 months ago
Unverified
5579caf41f3d1df3a990509b45ce2f791fcea30a

deps: Update

ccdown committed 2 months ago
Unverified
bb80426def824ea46fdd980969c80dc290883290

deps: Update

ccdown committed 2 months ago
Unverified
8286b6c931113a801415febb51088119ae2a3cb5

deps: Update

ccdown committed 2 months ago

README

The README file for this repository.

tzupdate | Tests

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.