A Linux daemon to automatically update the system timezone based on location.
zone1970.tab
filesystemd-timedated
Note: The timezone choice may not be accurate if a reference city in a neighboring timezone is closer than any one in the actual timezone.
tzdata
a.k.a. zoneinfo
org.freedesktop.timedate1.set-timezone
action (root
or Polkit rule)Please see the examples/ directory for sample configurations.
Please see:
shell
automatic-timezoned --help
shell
cargo build --release
shell
cargo test
This service depends on the tzdata
package which allows to update the Time Zone Database independently and does not depend on a third-party service to calculate distances,
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