Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion content/docs/jexl/reference/array/all.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Checks whether the provided array has all elements that match the specified expr
## Parameters

- **input** (array): The input array to test.
- **expression** (string): The JEXL expression to test against each element.
- **expression** (string): The JEXL expression to test against each element (supports value, index and array as context).

## Returns

Expand Down
2 changes: 1 addition & 1 deletion content/docs/jexl/reference/array/any.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Checks whether the provided array has any elements that match the specified expr
## Parameters

- **input** (array): The input array to test.
- **expression** (string): The JEXL expression to test against each element.
- **expression** (string): The JEXL expression to test against each element (supports value, index and array as context).

## Returns

Expand Down
2 changes: 1 addition & 1 deletion content/docs/jexl/reference/array/filter.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Returns a new array with the elements of the input array that match the specifie
## Parameters

- **input** (array): The input array to filter.
- **expression** (string): The JEXL expression to test against each element.
- **expression** (string): The JEXL expression to test against each element (supports value, index and array as context).

## Returns

Expand Down
2 changes: 1 addition & 1 deletion content/docs/jexl/reference/array/find.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Finds the first element in an array that matches the specified expression.
## Parameters

- **input** (array): The input array to search.
- **expression** (string): The JEXL expression to test against each element.
- **expression** (string): The JEXL expression to test against each element (supports value, index and array as context).

## Returns

Expand Down
8 changes: 2 additions & 6 deletions content/docs/jexl/reference/datetime/convertTimeZone.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,9 @@ ISO datetime string with correct offset
## Examples

```javascript
convertTimeZone(datetime, timezone)
convertTimeZone('2025-06-26T12:00:00Z', 'Europe/Amsterdam') // 2025-06-26T14:00:00.0000000+02:00
```

```javascript
$convertTimeZone(datetime, timezone)
```

```javascript
datetime|convertTimeZone(timezone)
'2025-06-26T12:00:00Z'|convertTimeZone('Pacific Standard Time') // '2025-06-26T05:00:00.0000000-07:00'
```
2 changes: 2 additions & 0 deletions content/docs/jexl/reference/datetime/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Date and time operations
- [`dateTimeAdd`](./datetime/dateTimeAdd): Adds a time range to a date and time in the ISO 8601 format.
- [`dateTimeFormat`](./datetime/dateTimeFormat): Converts a date and time to a provided format.
- [`dateTimeToMillis`](./datetime/dateTimeToMillis): Parses the date and time in the ISO 8601 format and returns the number of milliseconds since the Unix epoch.
- [`localTimeToIsoWithOffset`](./datetime/localTimeToIsoWithOffset): Converts a local time string in a specified timezone to an ISO datetime string with the correct offset.
- [`millis`](./datetime/millis): Returns the current date and time in milliseconds since the Unix epoch.
- [`millisToDateTime`](./datetime/millisToDateTime): Parses the number of milliseconds since the Unix epoch or parses a string (with or without specified format) and returns the date and time in the ISO 8601 format.
- [`now`](./datetime/now): Returns the current date and time in the ISO 8601 format.
Expand All @@ -23,4 +24,5 @@ Date and time operations
- [`dateTimeAdd`](./datetime/dateTimeAdd): Adds a time range to a date and time in the ISO 8601 format.
- [`dateTimeFormat`](./datetime/dateTimeFormat): Converts a date and time to a provided format.
- [`dateTimeToMillis`](./datetime/dateTimeToMillis): Parses the date and time in the ISO 8601 format and returns the number of milliseconds since the Unix epoch.
- [`localTimeToIsoWithOffset`](./datetime/localTimeToIsoWithOffset): Converts a local time string in a specified timezone to an ISO datetime string with the correct offset.
- [`millisToDateTime`](./datetime/millisToDateTime): Parses the number of milliseconds since the Unix epoch or parses a string (with or without specified format) and returns the date and time in the ISO 8601 format.
31 changes: 31 additions & 0 deletions content/docs/jexl/reference/datetime/localTimeToIsoWithOffset.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
title: localTimeToIsoWithOffset
description: Converts a local time string in a specified timezone to an ISO datetime string with the correct offset.
---

# localTimeToIsoWithOffset

Converts a local time string in a specified timezone to an ISO datetime string with the correct offset.

**Type:** transform

## Parameters

- **localTime** (string): Local time string
- **timeZone** (string): Timezone (IANA or Windows ID or fixed offset)

## Returns

**Type:** `string`

ISO datetime string with correct offset

## Examples

```javascript
localTimeToIsoWithOffset('2025-06-26 14:00:00', 'Europe/Amsterdam') // '2025-06-26T14:00:00.0000000+02:00'
```

```javascript
'2025-06-26 05:00:00'|localTimeToIsoWithOffset('Pacific Standard Time') // '2025-06-26T05:00:00.0000000-08:00'
```
2 changes: 1 addition & 1 deletion content/docs/jexl/reference/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ JEXL Extended provides over 80 built-in functions and transforms organized into
- [**Conversion**](./conversion): Convert between different data types (8 functions, 8 transforms)
- [**String**](./string): String manipulation and formatting functions (14 functions, 14 transforms)
- [**Utility**](./utility): General utility functions (6 functions, 5 transforms)
- [**DateTime**](./datetime): Date and time operations (7 functions, 5 transforms)
- [**DateTime**](./datetime): Date and time operations (8 functions, 6 transforms)
- [**Object**](./object): Object manipulation and inspection (3 functions, 3 transforms)

## Usage
Expand Down
Loading
Loading