Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Incorrect timestamps displayed in send mail

Kiran Kumar February 21, 2024

I have created  a customized field for timestamp, while receiving the date and time in mail, i am get in UTC format or incorrect date time. 

my field format below.

<td>{{issue.Incident Start Time}}

But looking at the jira ticket the date and time is correct what i have selected.

 

Incident Start Time(incorrect)2024-02-20T21:00:00.0+0000
Incident Start Time(need like this)-  2024-02-21 2.30 AM 

 

 

1 answer

0 votes
Mark Segall
Community Champion
February 22, 2024

Hi @Kiran Kumar 

Is your rule actor Automation for Jira?  If so, I believe it adopts whatever has been set as the default timezone in the general settings.  However, I've seen similar questions where users were having the same issue.  

You can use the smart value convertToTimeZone documented here

https://support.atlassian.com/cloud-automation/docs/jira-smart-values-date-and-time/#Convert-timezone-date---

You can also format the result to the desired text.

For example, if you were looking to present in EST time, you would do this

{{issue.Incident Start Time.convertToTimeZone("America/New_York").format("yyyy-MM-dd h:mm a")}}

 Here's a link to the full list of time zone options:

https://joda-time.sourceforge.net/timezones.html

Suggest an answer

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

Atlassian Community Events