In my project , I need using Timepicker with format HH:MM , but I use it like duration , not a time , so is it possible to increase HH upto 99 , not stop in 23 !
I using datetime picker from this page : http://tarruda.github.io/bootstrap-datetimepicker/
After several time to edit js file , I found that I must change js code in "getUTCHours()" method from http://tarruda.github.com/bootstrap-datetimepicker/assets/js/bootstrap-datetimepicker.min.js file to get my goal !
But I cannot find the define of this method :(
Can anyone help me ? Thanks all in advances !
Valentino !
Yes it is possible, the code has a condition that whenever it detects the hour is equal or greater than 23 it will reset to 23.
In this code there is no limit.
In Bootstrap.timepicker.js
Search for "23" or "24" in the code
You will find the following
I changed to
this.hour>=24?this.hour = this.hour
without Limit.To make it Up to 99 changue it to.
Be sure to use
to make this work.
Im using "time" variable type in MYSQL and is working just fine.
Now it Works.