Form Inserted timezone

Jakaria al Mahmud asked on May 25, 2018 00:57

Hi,
How can I change timezone of a Kentico form (bizform)?
When I'm submitting a form, The "Form inserted" and "Form updated" fields taking server timezone.
How can I set the timezone of that form to Site timezone Or a custom timezone?

https://drive.google.com/file/d/1U45_Ka7l7nVK2ux3Ay6D3QE2QTJ4S4OZ/view

Regards,

Correct Answer

Peter Mogilnitski answered on May 25, 2018 03:29

It will probably require some back-end programming with global events. These are system fields probably better leave them "as is". I suggest you to create your own DateTime field field and use macro in default value for example: {%DateTime.UtcNow#%} or for example for Eastern Time Zone {%DateTime.UtcNow.AddHours(-5)#%}

1 votesVote for this answer Unmark Correct answer

Recent Answers


Brenden Kehren answered on May 25, 2018 05:46 (last edited on May 25, 2018 05:54)

You need to configure the server and site timezones properly in settings. Unfortunately, it will not look good with existing records, only records moving forward.

https://devnet.kentico.com/articles/understanding-time-zones-within-kentico

Also check out this answer regarding Azure.

1 votesVote for this answer Mark as a Correct answer

Jakaria al Mahmud answered on May 25, 2018 12:13

Thanks guys for your quick help :)

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.