SirGaga / mobiscroll

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

Does not work IOS 5 if the date format is other than yyyy-mm-dd #92

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Setup a page and <input type="date" to use mobiscroll.
2. Have any format different than yyyy-mm-dd, lets say mm/dd/yyyy so put the 
value of <input type="date" as value="09/27/2012".
3. Open the page in IOS 5.

What is the expected output? What do you see instead?
Expected: 
When we click on the date picker, the picker should be loaded with given 
initial value and should be able to set it. Also, the format should be 
preserved even after the setting a new value.

Actual:
The input field comes as empty. The picker shows today's date, and when I click 
to "Set", the value is not set into the input field. No error though.

What version of the product are you using? On what operating system?
mobiscroll 2.0 rc3, OS Windows 7 Professional. IOS version 5.0.1 Browser Safari 
of course.

Please provide any additional information below.
I think this issue is some how related to the browser support for the html 
input type. We tested in Iphone 4S too, there we do not have any issue. What we 
have found is that Iphone 4S does not support for input type="date" (As checked 
with Modernizr) but the Iphone 5 has. 

We have not yet found the exact location for the fix but we at least feel that 
cause could be possibly this. 

Mobiscroll is good. Please put effort in making it even better.

Thanks
Santosh
(yourssatisfaction@gmail.com)

Original issue reported on code.google.com by yourssat...@gmail.com on 16 May 2012 at 8:58

GoogleCodeExporter commented 9 years ago
Mobiscroll 2.0rc3 forces the 'yy-mm-dd' format on input type="date", no matter 
what dateFormat setting is used. This format is a requirement for input 
type="date"
Info: http://www.w3.org/TR/html-markup/input.date.html#input.date

Here is a sample: http://jsfiddle.net/mCCuz/

Original comment by diosla...@gmail.com on 16 May 2012 at 9:59

GoogleCodeExporter commented 9 years ago
Thank you for your response. We have decided not to go for input type='date' 
now since we need to support and display worldwide formats. 

Thanks again.

Original comment by yourssat...@gmail.com on 17 May 2012 at 3:25

GoogleCodeExporter commented 9 years ago

Original comment by diosla...@gmail.com on 17 May 2012 at 6:35