Skip to content

Datetime widget can't decide on AM/PM or 24hr #219

@tisdall

Description

@tisdall

This can be see in the demo: http://deform2demo.repoze.org/datetimeinput/

I'm guessing there's different locale settings, so this may not happen in all locales. Perhaps this is even related to how locales are being handled.

Issue 1: If you select the time field you see a selection of times in AM/PM. After you select it the input field shows that value properly. If you submit the value then the re-rendered form with that time now shows in a 24hr format.

Issue 2: If you select a PM value for time, it correctly translates that to the proper 24hr time on submit. However, after a submit, clicking the time shows the selector with the wrong time pre-selected. (Ex. If you select "8:00 PM" and submit, the form element shows "20:00:00". If you click on the time input field it gives the scrolling list of options with "8:00 AM" preselected as the currently selected value.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions