ajanthanm / mobiscroll

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

setDate method doesnot set correctly the year #17

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
On iPhone iOS 4.3 with jquerymobile (beta1 and beta2). If I have a this object:

$(''#object').scroller({ preset: 'datetime', seconds: true,ampm : false,theme: 
'sense-ui', dateOrder:'mmddyy'});

and set a data via the setDate method as follows:

 $('#object').scroller('setDate', new Date());

when I click on the textfield and the wheel is shown the value on the top of 
the field is not correct. For instance, I have 08/05/-1, if I change the year 
by the wheel is set correctly.

Moreover, it is possible to add the function that does not allow to the user to 
choice a date before one that I fix... for instance, if I have to book a flight 
 return date must be after the leaving date.

Original issue reported on code.google.com by Filippo....@gmail.com on 5 Aug 2011 at 4:14

GoogleCodeExporter commented 8 years ago
Moreove, It will be useful a funcion that allow to set a maximum date.

Original comment by Filippo....@gmail.com on 7 Aug 2011 at 12:13

GoogleCodeExporter commented 8 years ago

Original comment by diosla...@gmail.com on 29 Aug 2011 at 9:27

GoogleCodeExporter commented 8 years ago
Fixed in 1.5

Original comment by diosla...@gmail.com on 31 Aug 2011 at 6:15

GoogleCodeExporter commented 8 years ago

Original comment by diosla...@gmail.com on 31 Aug 2011 at 6:20