# Configure timezone in the R kernel

Set the timezone with the `TZ` environment variable using the preinstalled `tzdata` Debian package for the R kernel.

Procedure: Configure timezone

Some R packages may require a timezone to be configured, and running their commands may result in the following error:

```
running command timedatectl had status 1
```

To prevent such issues, you can use the `tzdata` package that is preinstalled the R kernel environment in Datalore:

1. Specify the desired timezone as an environment variable:

```R
Sys.setenv(TZ = "Europe/Berlin")
```

2. (Optional) Suppress warnings:

```R
options(warn=-1)
```

