Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How do you specify longDateTime and a specific timezone for created date/time?

Ashley
Contributor
March 27, 2024

I have an automation rule that is going to send an email and share the time a ticket is created. I would like to use the format of longDateTime, but in the EST timezone. 

 

I have used different versions of the code below to no avail.

{{issue.created.longDateTime.convertToTimeZone("America/New_York")}}

 

Does anybody know how to specify the longDateTime format in a certain timezone?

1 answer

1 accepted

5 votes
Answer accepted
Kalyan Sattaluri
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 27, 2024

Hello @Ashley 

Changing the order works.

Please try: {{issue.created.convertToTimeZone("America/New_York").longDateTime}}

Reference: LINK

Timezones: LINK

Ashley
Contributor
March 27, 2024

Thank you so much - this is working for me!! I thought I tried that but apparently not!! 

Like Kalyan Sattaluri likes this
Kalyan Sattaluri
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 27, 2024

Awesome. Please consider accepting answer if helped so it benefits others. Thanks!

Like Ashley likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events