# Changing Timezone On Alpine

To be able to change Timezone on Alpine, we first need to make sure `alpine-conf` package is added, as by default Alpine Base Image doesn't come with unnecessary packages to keep Image size as low as possible.

## Example

```bash
apk add --update alpine-conf tzdata
```

This will add necessary setup scripts on Alpine. And to actually change Timezone, we can run following command -

```bash
setup-timezone -z IST
```

This sets the Timezone to IST, and we can now remove setup scripts package if required by optionally running -

```bash
apk del alpine-conf
```

**Reference(s)**

* [AlpineLinux - Wiki](https://wiki.alpinelinux.org/wiki/Alpine_setup_scripts#setup-timezone)
* [GitHub](https://github.com/gliderlabs/docker-alpine/issues/196#issuecomment-250826099)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://til.devjugal.com/linux/alpine/changing-timezone-on-alpine.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
