lopespm / mobiscroll

Automatically exported from code.google.com/p/mobiscroll
1 stars 0 forks source link

Missing number in timescroller #12

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi, 

I'm using mobiscroll 1.0.1 @ FF 3.6.18

While setting ampm=false at the timescroller, I can't set the time to "0:00" or 
"24:00" because the number in the hour field is missing.

My code is:
            $('#date2').scroller({ 
                preset: 'time',
                ampm : false
            });

Best Regards,
Markus

Original issue reported on code.google.com by markusst...@gmail.com on 14 Jul 2011 at 11:58

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Line 

for (var i = 1; i < (s.ampm ? 13 : 24); i += s.stepHour)

has to be changed to

for (var i = 1; i < (s.ampm ? 13 : 25); i += s.stepHour)

Original comment by markusst...@gmail.com on 15 Jul 2011 at 3:40

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by diosla...@gmail.com on 21 Jul 2011 at 5:56

GoogleCodeExporter commented 8 years ago
I think it might be better to set the i=1 to i=0 instead of :24 to :25. Because 
24 hour time goes from 00:00:00 to 23:59:59 (HOUR:MINUTE:SECOND format).  if 
you change the 24 to 25 the time range would be 01:00:00 to 24:59:59.  

Original comment by stephen....@gmail.com on 21 Jul 2011 at 3:15

GoogleCodeExporter commented 8 years ago
Fixed in 1.0.2 (0 to 23)

Original comment by diosla...@gmail.com on 28 Jul 2011 at 7:21