GitXplorerGitXplorer
c

tzupdate

public
209 stars
19 forks
8 issues

Commits

List of commits on branch master.
Unverified
27d638bd20ca72ba9034c59f3d10857201c82cf3

deps: Update and bump MSRV

ccdown committed 3 months ago
Unverified
5c712694f0c2aed077d631c27edee4054798b4c9

deps: Update

ccdown committed 3 months ago
Unverified
437b3f0cef1ac85a97f8ba3dab97bd7090deb2bb

deps: Update

ccdown committed 8 months ago
Unverified
8747c268c36b26c059b4c361c9feaeaa10d947e2

Added IPinfo.io

aabdullahdevrel committed a year ago
Unverified
e6815b34d3bb37661ba8b677f30db408de651c7f

build(deps): bump clap from 4.4.9 to 4.4.10

ddependabot[bot] committed a year ago
Unverified
b94a6909aff3d8d05408613497294e23231d730f

cargo: Bump deps

ccdown committed a year 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.