Skip to content
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

Open
marcoscarraro opened this issue Apr 2, 2014 · 3 comments
Open

Fix BUG pad hours with leading zero #219

marcoscarraro opened this issue Apr 2, 2014 · 3 comments

Comments

@marcoscarraro
Copy link

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:"")}

eleumik added a commit to eleumik/bootstrap-timepicker that referenced this issue May 9, 2014
@danielpina
Copy link

thanks for that

@eleumik
Copy link

eleumik commented Sep 2, 2014

you're welcome, but I believe this is only in my fork, have you tried it ?

@mrhota mrhota changed the title Fix BUG pad hours with leading zero | https://github.com/MartijnR/bootstrap-timepicker/commit/aa3653b02c339c53e88ee3d0611e4e566a882c42#commitcomment-5887335 Fix BUG pad hours with leading zero Aug 3, 2015
@mrhota
Copy link
Collaborator

mrhota commented Aug 3, 2015

peichhorn-netgo pushed a commit to netgo-software/bootstrap-timepicker that referenced this issue Aug 27, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants