Change of 12 hr format to 24 hr format not possible for me

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #10035895
    KarlvonPreussen
    Participant

    Hello Rodrigo,

    it’s me again. I tried to change the 12 hr format to 24 hr format in an appointment – form. I tried it via the data-attributes function in plain HTML shown here: http://jdewit.github.io/bootstrap-timepicker/ and with custom.js like this:

    $(function () {
        $('#firstTime').datetimepicker({
            use24hours: true
             format: "hh:mm"
        });
    });
    
    $.extend(theme.PluginTimePicker.defaults, {
        format: "hh:mm" 
    });

    Here is the site’s code:

    <div class="col-lg-6">
                                    		<div class="form-row">
                                    			<div class="col">
                                    				<p class="font-weight-semibold mb-2">Zweiter Wunsch</p>
                                    			</div>
                                    		</div>
                                    		<div class="form-row">
    			                                <div class="form-group col-md-6">
    			                                    <input type="text" value="" data-msg-required="Bitte ein Datum wählen" maxlength="100" class="form-control custom-datepicker" name="secondDate" id="secondDate" required placeholder="Datum">
    			                                </div>
    			                                <div class="form-group col-md-6">
    			                                    <input type="text" value="" data-msg-required="Bitte Wunschzeit auswählen" maxlength="100" class="form-control custom-timepicker" name="secondTime" id="secondTime" required placeholder="Zeit">
    			                                </div>
    			                            </div>
    		                            </div>

    I know that this is a noob question but maybe you can just point me where I have to look since I am not really clear where to try next.

    Thank you very much and best regards

    Kai


    #10035905
    Support
    Keymaster

    Hello,

    You must change that in the /js/demos/demo-auto-services.js file, and add this:

    Please try that and let me know if you need further assistance.

    Kind Regards,

    Jonas


Viewing 2 posts - 1 through 2 (of 2 total)

This topic is marked as "RESOLVED" and can not rceive new replies.