Skip to content

time_24hr

Displays time picker in 24-hour mode or AM/PM selection.

Default value ​

false

Possible values ​

true, false

relative

If true, the time will be relative to the configured timezone. If the timezone is not configured, the browser's timezone will be used.

If false, the time will be displayed as absolute in UTC and not change based on the browser's or configured timezone.

Default value ​

true

Possible values ​

true, false

timezone

Select in which timezone the values should be cast.

WARNING

This option is only taken into account if the relative option is true.

Default value ​

If nothing is selected, the browser's timezone will be used.

Possible values ​

TZInfo identifiers.

ruby
field :start, as: :, relative: true, timezone: "EET"
# Or
field :start, as: :, relative: true, timezone: -> { record.timezone }