Crates.io | automatic-timezoned |
lib.rs | automatic-timezoned |
version | |
source | src |
created_at | 2022-07-23 20:45:29.791492 |
updated_at | 2024-12-12 21:42:13.413782 |
description | Automatically update system timezone based on location |
homepage | |
repository | https://github.com/maxbrunet/automatic-timezoned |
max_upload_size | |
id | 631706 |
Cargo.toml error: | TOML parse error at line 17, column 1 | 17 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
A Linux daemon to automatically update the system timezone based on location.
systemd-timedated
Note: The timezone choice may not be accurate if very close to a timezone border due to tzf-rs
using simplified shape data.
org.freedesktop.timedate1.set-timezone
action (root
or Polkit rule)whitelist
(see also Stebalien/localtime - Configuring GeoClue, geoclue/geoclue#74)Please see the examples/ directory for sample configurations.
$ automatic-timezoned --help
Automatically update system timezone based on location
Usage: automatic-timezoned [OPTIONS]
Options:
-l, --log-level <LOG_LEVEL> Log level filter. See <https://docs.rs/env_logger> for syntax [env: AUTOTZD_LOG_LEVEL=] [default: info]
-h, --help Print help
-V, --version Print version
cargo build --release
cargo test
This service depends on the tzf-rs
package which bundles timezones and their geographical borders,
here are some alternatives which have made different trade-offs for performance and accuracy:
tzdata
package and Nominatim Web API for distances.GNU General Public License v3.0