Eonasdan / tempus-dominus

A powerful Date/time picker widget.
https://getdatepicker.com
MIT License
7.15k stars 4.41k forks source link

24 hour format #462

Closed jandante closed 10 years ago

jandante commented 10 years ago

Hi,

got 24 hour format working pretty good with this code:

$('#inputStarttime').datetimepicker({ format: 'DD/MM/YYYY HH:mm', language: 'nl' });

But just stumbled on to the fact that if you change the hour using the arrows there is no problem. If however you change the hour by clicking the hour and then choose for example 17u it suddenly takes 5 as value.

nikoskalogridis commented 10 years ago

please check this with the latest source file from development branch (note: the minified version is not updated)

jandante commented 10 years ago

@nikoskalogridis works like a charm with development version :)

prophe05 commented 9 years ago

Have you any plans to move this fix from development branch to master?

Nemo64 commented 9 years ago

I used the development branch now in a productive environment because I needed that 24 hour mode. It sees to run pretty well, but I just scratch the surface of what the date picker can do.

PaoloFalomo commented 7 years ago

am i the only one that do not see anything about this on docs?

William-H-M commented 7 years ago

@PaoloFalomo Hi, what do you mean by its not in the docs? If you mean about the 24H format this is indeed in the docs on the #format section and says that takes momentjs formats

PaoloFalomo commented 7 years ago

oh thx great! missed it!

2017-05-31 18:45 GMT+02:00 William notifications@github.com:

@PaoloFalomo https://github.com/paolofalomo Hi, what do you mean by its not in the docs? If you mean about the 24H format this is indeed in the docs on the #format section http://eonasdan.github.io/bootstrap-datetimepicker/Options/#format and says that takes momentjs formats

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Eonasdan/bootstrap-datetimepicker/issues/462#issuecomment-305246761, or mute the thread https://github.com/notifications/unsubscribe-auth/AKDAsXicxnxu1Qj2-YvY-YzezmyMsMvbks5r_ZkPgaJpZM4CUplu .

--

   CELLPHONE: +39 349 677 7622
   MAIL: info@paolofalomo.it <+info@paolofalomo.it>
   WEBSITE: www.paolofalomo.it
   TELEGRAM: https://telegram.me/paolofalomo
 Support my work :) <http://paypal.me/PaoloFalomo>