h3 / jquery-utils

Automatically exported from code.google.com/p/jquery-utils
MIT License
0 stars 0 forks source link

Showing seconds in timepickr #40

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. enable seconds in option by adding "seconds: true" and "format24: 
'{h:02.d}:{m:02.d}:{s:02.d}'"
2. select any time let say 12:00:00
3. output: 12:00:NAN

What is the expected output? What do you see instead?
12:00:00

What version of the product are you using? On what operating system?
0.7.a in IE8, Window Vista Business.

Please provide any additional information below.
ui.timepickr.js line 2361

Time.prototype.getTime = function() { return $.format(this.f, {h: this.h, 
m: this.m, s: this.s, z: this.z}); };

Adding s: this.s solved the problem. Thanks for your work.

Original issue reported on code.google.com by leekwee...@gmail.com on 17 Nov 2009 at 5:52