timeZone


timeZonestring

Sets or gets the date picker's timezone.

The date picker's timezone is set in IANA timezone format.

You can set the timeZone to avoid discrepancies if the site visitor and your site are in different timezones. timeZone affects:

  • How the date picker reads and returns dates in Velo and in collections.
  • What the data picker considers to be today's date, past dates, and future dates.

Examples:

  • December 12th in Argentina might already be December 13th in Spain. If you want to disable this date in the date picker with Velo, explicitly set the timezone so it's clear which timezone to use.
  • If a hotel disables past dates so they can't be booked, make sure to set the timezone to the hotel's timezone.

When working with collections, it's useful to save the dates in your site's timezone so that when viewing the data from the collection, the dates are correct for your timezone.

Was this helpful?
Yes
No