MCPcopy Index your code
hub / github.com/cdown/tzupdate

github.com/cdown/tzupdate @3.1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release 3.1.0 ↗ · + Follow
14 symbols 21 edges 3 files 7 documented · 50%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

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.

Core symbols most depended-on inside this repo

safe_canonicalise_path
called by 1
src/file.rs
get_tmp_path
called by 1
src/file.rs
link_localtime
called by 1
src/file.rs
write_timezone
called by 1
src/file.rs
get_nested_value
called by 1
src/http.rs
get_timezone_for_ip
called by 1
src/http.rs
get_timezone
called by 1
src/http.rs
parse_secs
called by 0
src/main.rs

Shape

Function 12
Class 2

Languages

Rust100%

Modules by API surface

src/file.rs7 symbols
src/http.rs4 symbols
src/main.rs3 symbols

For agents

$ claude mcp add tzupdate \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact