# getPermitTimeline

> Merges a permit's history and every condition's fulfillments into one list ordered by local calendar date, newest first. Fulfillments are placed at the local date of their datetime in timeZone (the well's location.properties.timezone), or as written when no zone is given.

> **getPermitTimeline**(`permit`, `timeZone?`): [`PermitTimelineItem`](/utils/api/type-aliases/PermitTimelineItem)[]

Merges a permit's `history` and every condition's `fulfillments` into one
list ordered by local calendar date, newest first. Fulfillments are placed
at the local date of their `datetime` in `timeZone` (the well's
`location.properties.timezone`), or as written when no zone is given.

## Parameters

### permit

`Permit`

### timeZone?

`string`

## Returns

[`PermitTimelineItem`](/utils/api/type-aliases/PermitTimelineItem)[]
