---
title: timezone.fixed() function
description: timezone.fixed() returns a location record with a fixed offset.
url: https://docs.influxdata.com/flux/v0/stdlib/timezone/fixed/
estimated_tokens: 889
product: Flux
version: v0
---

# timezone.fixed() function

-   Flux 0.134.0+
-   View InfluxDB support

`timezone.fixed()` returns a location record with a fixed offset.

##### Function type signature

```js
(offset: A) => {zone: string, offset: A}
```

For more information, see [Function type signatures](/flux/v0/function-type-signatures/).

## Parameters

### offset

(Required) Fixed duration for the location offset. This duration is the offset from UTC.

## Examples

-   [Return a fixed location record](#return-a-fixed-location-record)
-   [Set the location option using a fixed location](#set-the-location-option-using-a-fixed-location)

### Return a fixed location record

```js
import "timezone"

timezone.fixed(offset: -8h)// Returns {offset: -8h, zone: "UTC"}

```

### Set the location option using a fixed location

```js
import "timezone"

// This results in midnight at 00:00:00-08:00 on any day.
option location = timezone.fixed(offset: -8h)
```

The `location` option only affects boundaries used for windowing, specifically around time shifts like daylight savings. It does not change timestamps in the `_time` column, which are always UTC.

[date/time](/flux/v0/tags/date/time/) [location](/flux/v0/tags/location/)
