Skip to content

time_zone_select does not use the IANA recognized format #54485

Open
@bart-westenenk-bex

Description

@bart-westenenk-bex

Steps to reproduce

Create the following form

<%= form_with scope: :company, url: companies_path, local: true do |form| %>
  <p>
    <%= form.time_zone_select :timezone, nil %>
  </p>
<% end %>

Click on a timezone, I'll choose (GMT+01:00) Amsterdam as an example.

Expected behavior

The timezone attribute on company gets set as Europe/Amsterdam.

Actual behavior

The timezone attribute on company gets set as Amsterdam.

System configuration

Rails version: 7.2.2.1

Ruby version: 3.4.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions