jonthornton / Datepair.js

A javascript plugin for intelligently selecting date and time ranges, inspired by Google Calendar.
https://www.jonthornton.com/Datepair.js
358 stars 87 forks source link

24 hour format? #69

Closed samayo closed 8 years ago

samayo commented 8 years ago

Is there some sort of time specifier we can use to display time in 24 hours format inside the dropdown for the timepicker?

edit: btw, I know this is mentioned in the js file and this is my setting.

    $('#BookingAddForm .time').timepicker({
        'showDuration': true,
        'timeFormat': 'g:ia',
        'show2400': true
    });
jonthornton commented 8 years ago

Use a 24 hour timeFormat.

$('#BookingAddForm .time').timepicker({
        'showDuration': true,
        'timeFormat': 'G:ia',
        'show2400': true
    });