Did you check this? https://packages.debian.org/stretch/geoip-bin
> Hi, > > Is there any way - or Debian package - to know the timezone from an IP > address, or at least from a country? I have successfully used the geoip > databases to get the country, so I could use the main city as an > approximation. > > I would prefer to do this offline, though. > > Thanks for your insights. > > -- > André Meow! -- ⢀⣴⠾⠻⢶⣦⠀ ⣾⠁⢠⠒⠀⣿⡁ A dumb species has no way to open a tuna can. ⢿⡄⠘⠷⠚⠋⠀ A smart species invents a can opener. ⠈⠳⣄⠀⠀⠀⠀ A master species delegates.