How to Dynamically Adjust Session Time Based on User's Local Time in Gravity Forms

Hi Gravity Forms Support,

I’m using Gravity Forms in conjunction with ACF to create custom post types. Here’s my current setup:

  • A hidden field called “Session Time” is populated with {today:format:H\:i} under Default Value. This defaults to UK time.
  • During form submission, this field is used to populate an ACF Time Picker Field (“Start Time”) via the Post Creation Add-On.
  • The time is displayed in the custom post type as H:i.

The Issue

For international users, the time remains in UK time, even though they may be in different time zones (e.g., Australia), which causes confusion.

Goal

I’d like the Session Time field in Gravity Forms to dynamically reflect the user’s local time (based on their browser or device settings), so the correct time is displayed in the custom post type.

Question

Is there a way to dynamically adjust the hidden field to reflect the user’s local time? Can this be achieved using any built-in Gravity Forms features, hooks, or JavaScript?

Thank you for your guidance!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.