> ## Content Index
> Fetch the complete content index at: https://www.binarysludge.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Keeping Linux Timezone Updated When Travelling
- URL: https://www.binarysludge.com/2016/04/15/keeping-linux-timezone-updated-when-travelling/
- Published: 2016-04-15T20:49:19.000Z
- Updated: 2016-04-15T20:49:19.000Z
- Author: Andrew Martin
- Tags: linux, Network Time Protocol, ntpd, system adminstration, #Import 2026-10-22 12:56

Journeying through various timezones requires updates to the system timezone, otherwise NTP will stay synchronised with your "home" timezone.

Most OSs offer some NTP/GeoIP functionality to identify your current timezone by your IP, but running bare systems requires a CLI tool.

[tzupdate](https://github.com/cdown/tzupdate?ref=binarysludge.com) does this for you. It can be installed from `pip`:

```
sudo pip install -U tzupdate

```

And run like so:

```
sudo tzupdate

```

> By default, tzupdate will geolocate you, get the timezone for that geolocation, and then attempt to link that timezone to /etc/localtime. You can pass -p to print the detected timezone without linking. You can also pass -a to pass an IP address to use, instead of geolocating you.

This could be performed on a `cron` job, but to avoid [potential failures in the mapping database](http://fusion.net/story/287592/internet-mapping-glitch-kansas-farm/?ref=binarysludge.com) is better performed manually.