# Time zones in Jira Automation: syntax and examples

URL: https://goingstellar.ro/reference/smart-values/date-timezone/

Dates print in UTC by default. convertToTimeZone("Area/City") shows the same moment as the local time in another zone, while setTimeZone("Area/City") keeps the clock time and swaps the offset, which changes the moment. Use convert for messages to people in another zone and set when a time you already hold is a local time.

## Syntax

```
{{issue.created.convertToTimeZone("Europe/Bucharest")}}
{{issue.created.setTimeZone("Europe/Bucharest")}}
```

## Arguments

- `timezone` (required: yes): A zone ID such as Europe/Bucharest or America/New_York, in quotes, or a value such as issue.reporter.timeZone

## Works on

- Fields: date-time values such as created, updated and now
- Returns: a date-time with the new offset, which a format can follow

## Examples

```
{{now.convertToTimeZone("Europe/Bucharest")}}
```

Shows the current time as a Bucharest user sees it: the clock moves to 18:23 and the offset is +0200.

Result:

```
2026-11-29T18:23:14.2+0200
```

Run on Jira Cloud on 29 Nov 2026.

```
{{now.setTimeZone("Europe/Bucharest")}}
```

Keeps the clock at 16:23 and only attaches the +0200 offset, so it is a different moment than now.

Result:

```
2026-11-29T16:23:14.3+0200
```

Run on Jira Cloud on 29 Nov 2026.

```
{{now.convertToTimeZone("America/New_York").longDateTime}}
```

Formats the current time for a team in New York, with the zone abbreviation.

Result:

```
November 29, 2026, 11:23:14 AM EST
```

Run on Jira Cloud on 29 Nov 2026.

```
{{now.setTimeZone("Europe/Bucharest").convertToTimeZone("UTC")}}
```

Treats a clock time as Bucharest local time and converts it to UTC, which gives 14:23.

Result:

```
2026-11-29T14:23:39.3+0000
```

Run on Jira Cloud on 29 Nov 2026.

```
{{now.convertToTimeZone("Europe/Bucharest").format("dd/MM/yyyy HH:mm z")}}
```

Prints a local time with the zone abbreviation, ready for a message.

Result:

```
29/11/2026 18:23 EET
```

Run on Jira Cloud on 29 Nov 2026.

```
{{issue.created.convertToTimeZone(issue.reporter.timeZone)}}
```

Shows the creation time in the reporter's own zone.

Result:

```
2026-11-29T18:06:13.4+0200
```

Run on Jira Cloud on 29 Nov 2026.

## Pitfalls

- Zone names must be valid IDs. `"Mars/Olympus"` and `"PST"` fail with a runtime error, while `"UTC+2"` was accepted (checked on Jira Cloud, November 2026).
- On a date-only field such as the due date, both functions render empty. They need a value that has a time, for example created or now (checked on Jira Cloud, November 2026).
- `setTimeZone()` does not show the same moment in another zone. 16:23 UTC becomes 16:23+0200, which is 14:23 UTC. Pick convertToTimeZone() unless you really mean to relabel the clock time.

## Related

- [{{now}}](https://goingstellar.ro/reference/smart-values/now/)
- [Date formats (jiraDate, format(), shortTime…)](https://goingstellar.ro/reference/smart-values/date-format/)
- [locale() and withLocale()](https://goingstellar.ro/reference/smart-values/date-locale/)
- [plusDays() / minusDays() and other units](https://goingstellar.ro/reference/smart-values/date-plus-minus/)
- [diff()](https://goingstellar.ro/reference/smart-values/date-diff/)
- [{{assignee}}, {{reporter}}, {{creator}}, {{initiator}}](https://goingstellar.ro/reference/smart-values/user-smart-values/)

## Sources

- [Jira smart values: date and time (Atlassian Support)](https://support.atlassian.com/cloud-automation/docs/jira-smart-values-date-and-time/)
- [Use smart values to manipulate and format dates (Atlassian Support)](https://support.atlassian.com/cloud-automation/docs/examples-of-using-smart-values-with-dates/)

