🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!

Gravity Forms Time Zone Premium Add-on Setup Guide

Updated 10 min read Gravity Forms Fields & Inputs
On this page
  1. Video walkthrough
  2. What You Get
  3. Quick Start
  4. Field Settings
  5. The List and the Search
  6. Detecting the Visitor’s Zone
  7. Converting a Date and a Time
  8. Merge Tags
  9. Entries and Notifications
  10. Conditional Logic
  11. Multi-Page, AJAX and Save and Continue
  12. Without Scripts, and Accessibility
  13. Add-on Settings
  14. Developer Hook
  15. Troubleshooting
  16. Frequently Asked Questions
  17. Does it make requests to an outside service?
  18. Is daylight saving time handled?
  19. Can I use it for bookings and reminders?
  20. What happens when my license expires?
  21. Can a form have more than one Time Zone field?
  22. Every visitor, on their own clock

Video walkthrough

Gravity Forms Time Zone Field: Detect, Search and Convert Booking Times to Your Site Zone
Watch: detect, search and convert visitor time zones in Gravity Forms, step by step. Watch on YouTube

Time Zone adds one new field to Gravity Forms: Time Zone. It is a drop-down of every IANA time zone, grouped by region, with the UTC offset and the current local time next to each name. The visitor’s own zone is detected from the browser and selected for them. If your form also asks for a date and a time, the add-on can convert them to your site’s time zone (or any zone you choose) when the form is sent, keep the result with the entry and print it in your notifications. The value saved in the entry is always the IANA identifier, for example Europe/Paris.

A Book a call form with a name, a day, a time and a Time Zone field that already shows Europe/Paris with its UTC offset, and a line under the field that says 6:00 pm in Europe/Paris is 10:00 am in the site time zone
The visitor’s zone is selected on load and a line under the field shows the conversion while they type.

What You Get

  • A select of every zone PHP knows, grouped by region (Africa, America, Antarctica, Arctic, Asia, Atlantic, Australia, Europe, Indian, Pacific), with a group of common zones first.
  • A search box above the list: type a city, a zone name, a country code or an offset such as UTC+7 or GMT+5:30.
  • Detection of the visitor’s zone from the browser. Without scripts the site zone is selected and the native drop-down still works.
  • Labels as a zone name (Asia/Ho_Chi_Minh) or with the offset first (UTC+7 · Ho Chi Minh). The UTC offset and the local time can be hidden.
  • A date and time conversion saved as entry meta, a merge tag for it, and a live line under the field while the visitor types.
  • Merge tags for the zone itself: offset, UTC text, abbreviation, city, label and the converted time.
  • Conditional logic on the zone and on the UTC offset.
  • Works with AJAX forms, multi-page forms, save and continue and the Orbital theme. No outside requests: the list comes from PHP.

Quick Start

  1. Install and activate the add-on, then activate your license key in Forms → Settings → Time Zone.
  2. Open a form in the form editor and add the Time Zone field from the Advanced Fields group.
  3. Choose the default zone. Detect from the browser is the default and the best choice for most forms.
  4. If the form has a Date field and a Time field, switch on Convert a date and time and pick those two fields.
  5. Open the form on your site, change the zone, type a date and a time and read the line under the field. Send the form and open the entry.

Field Settings

The settings are in the General tab of the field. The usual label, description, placeholder, required, CSS class and visibility settings are there too.

Setting What it does
Default zone Detect from the browser (the site zone is shown when scripts are off), the site time zone, a fixed zone you name, or nothing selected. Nothing selected shows the placeholder text and works well with a required field.
Label format Zone name, for example Asia/Ho_Chi_Minh (UTC+7), or offset first, for example UTC+7 · Ho Chi Minh. The value that is saved does not change.
UTC offset / Local time Show or hide the offset and the current local time in the labels. Both follow your add-on defaults until you change them here.
Search box Adds the search box above the list.
Common zones Your own shortlist for this field, one identifier per line. Empty uses the add-on setting, and that uses the built-in shortlist of 21 zones. The site zone is always added first.
Convert a date and time Picks the Date field and the Time field to convert and the target: the site time zone or another zone.

Every label shows the UTC offset and the local time of the zone at the moment the list is opened, so a visitor can check a zone against the clock on their wall. The offset follows daylight saving time: Europe/Paris shows UTC+1 in winter and UTC+2 in summer.

The Time Zone field while searching for UTC+5:30: the box above the list holds the search text and the list shows only the zones that are five and a half hours ahead of UTC
The search finds a city, a zone name or an offset.

The search looks at the zone name, the city, the offset (UTC+5:30, +05:30 and GMT+5:30 all work), the abbreviation (CEST, IST) and the country code. Every word you type has to match. Press Enter to choose the first result, Escape to clear the box, or press the down arrow to move into the list. While you search, the drop-down opens as a list; once you choose, the full list is back with your choice selected.

Detecting the Visitor’s Zone

When a form loads for the first time, the browser is asked for its time zone and, if it is in the list, that zone is selected and a short line says where it came from. Older names such as Asia/Calcutta or Europe/Kiev are mapped to the names in the list. If the browser reports a zone that is not in the list, the site zone stays selected.

Detection never overwrites a choice. When a form comes back after a validation error, when a visitor goes back to an earlier page, or when a saved form is resumed, the zone that was chosen stays.

Converting a Date and a Time

Switch on Convert a date and time and choose the Date field and the Time field of the form. The date and time the visitor enters are read in the zone they chose and converted with PHP’s DateTimeZone, so daylight saving time is correct for the day they entered, not for today. The result is saved as entry meta and can be printed with a merge tag.

  • Time that does not exist. When clocks skip forward, for example 2:30 in the morning on the last Sunday of March in Berlin, the time is moved forward like a clock would show it (3:30), and the live line tells the visitor.
  • Time that happens twice. When clocks go back, the first of the two moments is used.
  • Half hours and quarter hours. India, Nepal, parts of Australia and others work as expected.
  • Date formats. Date fields as three inputs, as drop-downs or as a date picker work, in any Gravity Forms date format. Time fields in 12 or 24 hours work.

The entry meta key is getz_conv_ followed by the id of the Time Zone field, and the value looks like 2026-07-15 07:30 America/Denver. It is offered as a column of the entry list and in filters like any entry meta.

Merge Tags

The field has its own merge tag modifiers, and one extra merge tag converts any date and time you point at.

<p>Zone: {Time Zone:4}</p>
<p>Offset when the form was sent: {Time Zone:4:offset}</p>
<p>In our time: {Time Zone:4:converted}</p>
<p>In Paris: {timezone_convert:2,3,target=Europe/Paris,format=full}</p>
Merge tag Result
Time Zone:4 The identifier, for example Asia/Ho_Chi_Minh.
Time Zone:4:offset The offset in the form +07:00, as it was when the form was sent.
Time Zone:4:utc The offset as UTC+7.
Time Zone:4:abbr The abbreviation, for example CEST.
Time Zone:4:city The city part, for example Ho Chi Minh.
Time Zone:4:full The identifier with its offset, for example Asia/Ho_Chi_Minh (UTC+07:00).
Time Zone:4:converted The converted date and time in the format of your site. Also converted_date, converted_time and converted_iso.
timezone_convert:2,3,target=site Converts the Date field 2 and the Time field 3 from the zone of the first Time Zone field to the site zone.

Replace Time Zone and the numbers with the label and ids of your fields. The timezone_convert tag takes more options after the two field ids:

Option Meaning
target site (the default), a zone such as Europe/Paris, or an offset such as +05:30.
tz The id of the Time Zone field to read the source zone from, when the form has more than one.
from A fixed source zone such as America/New_York, instead of a field.
format datetime (default), date, time, iso, full, offset, zone, abbr, or your own PHP date pattern with letters, digits, colons, dashes, dots and slashes (an underscore stands for a space).

If anything is missing or not valid, the tag is replaced by nothing, so a half filled form never prints a wrong time. The tag is also offered in the merge tag list of the form editor.

Entries and Notifications

An entry in the Gravity Forms admin: the Time Zone value Asia/Ho_Chi_Minh with its UTC offset and, under it, the converted date and time in the site time zone
The entry shows the zone with its offset and the converted time.

In the entry the zone is shown with the offset that applied on the day the form was sent, and the converted time is shown under it. The same lines appear in all_fields in notifications. The entry list shows the zone and offers the converted value as a column.

Conditional Logic

The Time Zone field can be the source of a rule. Use the identifier for a zone, or the UTC offset for a range of zones.

Rule Shows the field for
Time Zone starts with Europe/ Every European zone.
Time Zone is Asia/Tokyo That one zone.
Time Zone is UTC+7 Every zone that is seven hours ahead of UTC right now.
Time Zone greater than UTC+0 Every zone east of UTC.
Time Zone less than -03:00 Every zone more than three hours behind UTC.

A rule value that looks like an offset (UTC+5:30, GMT-3, +05:30, -0800) is compared with the current offset of the chosen zone, with is, is not, greater than and less than. Other values are compared as text, with every operator. The browser and the server use the same rules, so a field that is hidden is never saved.

Multi-Page, AJAX and Save and Continue

The field works on any page of a multi-page form and keeps its value when a visitor moves between pages. With AJAX the field is set up again after every answer from the server. With save and continue the saved zone comes back as it was, even when the visitor opens the link in a browser in another zone. The conversion is made when the form is finally sent.

Without Scripts, and Accessibility

  • Without scripts the field is a normal select with the site zone selected. It still saves the identifier, and the conversion is still made on the server. Search, detection and the live line need scripts.
  • The select keeps the label of the field, required and invalid states and descriptions that Gravity Forms gives it. The search box has its own accessible name and a status message that says how many zones were found.
  • Only a real identifier from the list is accepted: a changed value is refused with a message.
  • The field makes no outside requests.

Add-on Settings

Forms → Settings → Time Zone holds the defaults for fields that do not override them.

Setting What it does
Common zones The shortlist shown first, one identifier per line. Empty uses the built-in shortlist.
Label format Zone name or offset first.
Show the UTC offset Yes or no.
Show the current local time Yes or no.

Developer Hook

getz_client_config changes the data given to the script of a field before it is printed.

// Turn the search box off in every Time Zone field of every form.
add_filter( 'getz_client_config', function ( $data, $form ) {
    $data['search'] = false;
    return $data;
}, 10, 2 );

Troubleshooting

Problem Check
The field is not shown The license key must be active. Without it the field is hidden on the site, and the forms, entries and converted values you already have stay as they are.
The zone is not detected The browser must report a zone that is in the list. Some privacy settings hide the zone and report UTC. The site zone stays selected in that case.
No conversion in the entry Check that the Date and Time fields are chosen in the field settings, that both were filled in and not hidden by conditional logic, and that a zone is selected.
The site zone shows as UTC WordPress is set to a manual offset instead of a city under Settings → General. Choose a city there for the best result. The conversion to the site still works with the offset.
The line under the field differs from the entry for one zone Browsers and PHP each carry their own copy of the time zone database. After a country changes its rules the two can differ for a few weeks. The server result is the one that is saved.
Labels show an old time The times in the labels are refreshed when the list is opened or searched. A page that stays open for hours updates on the next click.

Frequently Asked Questions

Does it make requests to an outside service?

No. The list of zones comes from PHP and the browser does the rest.

Is daylight saving time handled?

Yes. Conversions use the offset of the day that was entered, and the list shows the offset of the moment it is opened.

Can I use it for bookings and reminders?

Yes. The saved identifier works with anything that needs the visitor’s zone, and the converted time is available as entry meta and as a merge tag for notifications and feeds.

What happens when my license expires?

The field is not shown. Your forms, entries and the converted values already saved stay as they are.

Can a form have more than one Time Zone field?

Yes. Each field has its own conversion. Use the tz option of the merge tag to choose which one to read.

Every visitor, on their own clock

A time zone field that detects the visitor’s zone and converts the date and time for you.

Still need help?

Our support team answers tickets every day, usually within a few hours.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr