How to change time zone in Confiforms?
Asked by Aster:

Hello community!

I am using a virtual function in Confiforms (<https://wiki.vertuna.com/display/CONFIFORMS/Virtual+functions>) to change the time format shown in TableView. It works well when using "created.formatDate(yyyy-MM-dd 'at' HH:mm z)" in the Field name. However, if I would like to change the time zone and set the field name as "created.formatDate(yyyy-MM-dd 'at' HH:mm z**, UTC**), it just became 13 digits numbers.

Could someone show me how to change the time zone in Confiforms? Thanks!

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/272417i979C33923EF6A813/image-size/large?v=v2&px=999 "image.png")

with NO time zone specified:

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/272413iE31D23D77C4A54B0/image-size/large?v=v2&px=999 "image.png")

with specified time zone:

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/272415iFADC6A8B9CD5B727/image-size/large?v=v2&px=999 "image.png")


Answers:
author: Alex Medved _ConfiForms_
body: Hi [@Aster](/t5/user/viewprofilepage/user-id/5219143)

You can use convertDate function to convert dates

![Screenshot 2023-08-01 at 14.22.55.png](https://community.atlassian.com/t5/image/serverpage/image-id/272450i7BDAF9779A7033B3/image-size/large?v=v2&px=999 "Screenshot 2023-08-01 at 14.22.55.png")![Screenshot 2023-08-01 at 14.23.07.png](https://community.atlassian.com/t5/image/serverpage/image-id/272451iE982BDF993EE23B6/image-size/large?v=v2&px=999 "Screenshot 2023-08-01 at 14.23.07.png")

Alex

comments: author: Aster
body: [@Alex Medved _ConfiForms_](/t5/user/viewprofilepage/user-id/781630)

I've tried the convertDate function, but got the other series of weird numbers...

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/272482iDB55DFDCC17E802E/image-size/large?v=v2&px=999 "image.png")


author: Aster
body: btw, the field I'd like to use here is a reserved/internal field according to the following warning I got when trying to add a field definition in the form.

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/272484i42FA6CA6647C030F/image-size/large?v=v2&px=999 "image.png")


author: Alex Medved _ConfiForms_
body: It works fine for me as you can see - what ConfiForms version are you using?

As for the "reserved field name" error - nothing much to add. It is indeed a system field that every record has in ConfiForms and you cannot have your field with the name reserved for system (metadata) fields - <https://wiki.vertuna.com/display/CONFIFORMS/Documentation>


author: Aster
body: How do I know what ConfiForms version I am using?


author: Alex Medved _ConfiForms_
body: For example like this <https://wiki.vertuna.com/display/CONFIFORMS/ConfiForms+FAQ#ConfiFormsFAQ-HowdoIseetheversionofConfiForms>


author: Aster
body: [@Alex Medved _ConfiForms_](/t5/user/viewprofilepage/user-id/781630)

Thank you. I found it. It's version: **3.3.6**.


author: Alex Medved _ConfiForms_
body: Hi

Please consider updating the plugin, as there was a fix to this function specifically in 3.5.1 (was ignoring the timezone parameter)

<https://wiki.vertuna.com/display/CONFIFORMS/Release+Notes#ReleaseNotes-Version3.5.1>

Alex


author: Aster
body: Thanks! I will try updating it:)


Tags: confiforms

confluence-server

server