Forums

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

Automation - {{now}} only returns date 12:00 am

Tester McTestyface
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 14, 2022

I'm setting up probably the most basic automations but can't seem to get the date & time posted. 

 

I'm using {{now}} but every time I run a test and export to csv, I see the date but the time is always 12am. Anyone know what the correct macro I should be using?

 

{{nowDateTime}} // returns nothing

{{currentdatetime}} // returns nothing

{{now}}  //date but time is always 12am

 

Anyone? Please don't post to links atlassians cryptic docs.

2 answers

0 votes
Bill Sheboy
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.
October 16, 2022

Hi @Tester McTestyface 

Would you please post images of your complete automation rule and of the audit log details showing where the execution does not work as you expect?  That may provide more context for the community to offer suggestions.  Thanks!

Kind regards,
Bill

0 votes
Ivan Lima
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.
October 14, 2022

Okay, not easy, but I'll try not to post cryptic docs :)

So, {{now}} should return the current date and time UTC. Could you please provide more details on how you're using it? Does your automation populate a date field that you export to a CSV from the search results?

Tester McTestyface
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 16, 2022

Yes. It's to populate a date field.

Ivan Lima
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.
October 16, 2022

Is the date field displaying correctly and the CSV displaying 12 am? Or are both showing "12 am"?

Suggest an answer

Log in or Sign up to answer