jijopaulose / mobiscroll

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

dateOrder sets wrong day when no day is used in DateOrder. #129

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Following code is used:
            var now = new Date();
                    $('#departure').mobiscroll().datetime({
                minDate: new Date(now.getFullYear(), now.getMonth(), now.getDate()),
                theme: 'jqm',
                display: 'modal',
                mode: 'mixed',
                dateOrder: ''', 
                dateFormat: 'MM dd, yy, ',
                timeFormat: 'HH:ii'
            });

 This effects any use of dateOrder when no day is specified e.g "dateOrder: 'M'"

What is the expected output? What do you see instead?
The current date is desired to be shown in the input box, but not changeable or 
displayed by the wheels.

What version of the product are you using? On what operating system?
2.4.1 on OSX using Chrome Web Browser

Original issue reported on code.google.com by m...@dknox.co.uk on 13 Feb 2013 at 12:51

GoogleCodeExporter commented 9 years ago
I should add the the output displayed instead is February 01, 2013,  12:51 
rather than February 13, 2013, 12:51

Original comment by m...@dknox.co.uk on 13 Feb 2013 at 12:52

GoogleCodeExporter commented 9 years ago
This is the default behavior if the day wheel is not present.
However you can overwrite the formatResult function in your settings to build 
your own output. 

Original comment by diosla...@gmail.com on 14 Mar 2013 at 9:54