I'm using a rule to email out the results of a filter. In the filter, the Created date for a ticket is shown as "Nov 16, 2025, 10:47 PM". The time in our local time zone (Pacific) when the ticket was created.
The exact same filter is used in the automation rule that sends out the email. In the "Send Email" step in the automation, I have {{created}}. In the resulting email, the date is shown as "2025-11-17T06:47". It's in UTC+00, in London time.
How do I get the dates to instead show in local Pacific time zone time, in UTC-08?
Found an answer.
{{created.withZone("America/Los_Angeles").shortDate}} was supposed to work but didn't for me. Apparently withZone isn't supported in my Jira.
Alternative of {{created.format("yyyy-MM-dd HH:mm", "America/Los_Angeles")}} was suggested but also didn't work for me.
Apparently, mine only supports the legacy convertToTimeZone() function. So I used {{created.convertToTimeZone("America/Los_Angeles")}} and that finally worked.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.