Skip to content

converting from ampm back to 24 hour time does not work. #479

@ctilley83

Description

@ctilley83

When users set a time in the ampm format, and you have an altField set to then format it back to 24 hour time, the conversion doesn't take into account pm. for example if you select a 3:15pm, it converts it to:

  2012-10-16 03:15:00

when it should convert it to:

  2012-10-16 15:15:00
 $("#ship_display").datetimepicker
    ampm: true
    altField: "#shipment_ship_date"
    altFormat: "yy-mm-dd"
    altFieldTimeOnly: false
    altTimeFormat: "hh:mm:00"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions