Forums

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

How can i convert dates to UTC?

Jasper Rich
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!
May 31, 2023

Hi all,

i try to convert the entry._now timestamp in a ConfiForm to a utc date like that:

[entry._now.convertDate(yyyy-MM-dd H:mm:ss, UTC)]

[entry._now.formatDate(yyyy-MM-dd H:mm:ss, UTC)]

The outcome is a unix timestamp e.g. " 1685458416008".

Am i doing something wrong?

 

Thanks a lot

Jasper

1 answer

0 votes
Alex Medved _ConfiForms_
Community Champion
May 31, 2023

Hi @Jasper Rich and welcome to this community

You are doing everything correctly, it looks like the change to support the timezones in the convertDate has not been ported to server version (while the docs say otherwise)

Sorry about that

We will fix that asap

Alex

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events