-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix BUG pad hours with leading zero #219
Labels
Comments
eleumik
added a commit
to eleumik/bootstrap-timepicker
that referenced
this issue
May 9, 2014
this should fix jdewit#219 jdewit#209 jdewit#208 jdewit#203, jdewit#209 has tests not yet included here JSBIN http://jsbin.com/xahux/3
thanks for that |
you're welcome, but I believe this is only in my fork, have you tried it ? |
peichhorn-netgo
pushed a commit
to netgo-software/bootstrap-timepicker
that referenced
this issue
Aug 27, 2015
this should fix jdewit#219 jdewit#209 jdewit#208 jdewit#203, jdewit#209 has tests not yet included here JSBIN http://jsbin.com/xahux/3 see: eleumik@7a5a84a
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please update on bootstrap-timepicker.min.js
New function to add 0 using 24 hours!!!
replace
return this.hour||this.minute||this.second?this.hour+":"+(1===this.minute.toString().length?"0"+this.minute:this.minute)+(this.showSeconds?":"+(1===this.second.toString().length?"0"+this.second:this.second):"")+(this.showMeridian?" "+this.meridian:""):""}
for
return(this.hour.toString().length===1?"0"+this.hour:this.hour)+":"+(this.minute.toString().length===1?"0"+this.minute:this.minute)+(this.showSeconds?":"+(this.second.toString().length===1?"0"+this.second:this.second):"")+(this.showMeridian?" "+this.meridian:"")}
The text was updated successfully, but these errors were encountered: