-
22 Jan 2012 3:21 PM #1
[PR3] Ext.util.format.date not working in mobile safari
[PR3] Ext.util.format.date not working in mobile safari
This line:
Renders fine in OSX safari but on the latest IOS5 safari it renders asCode:Ext.util.Format.date('2011-12-21', 'F Y');
Tried no format, different dates etc.. same result.Code:undefined 0NaN
-
22 Jan 2012 5:38 PM #2Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- Frederick MD, NYC, DC
- Posts
- 16,167
- Vote Rating
- 29
This is a bug with PR3:

Moving to bugs...
Jay Garcia @ModusJesus || Modus Create co-founder
Ext JS in Action author
Sencha Touch in Action author
Get in touch for Ext JS & Sencha Touch Touch Training
We are also working on Video-based Sencha Touch training: Check it out here.
-
22 Jan 2012 5:39 PM #3Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- Frederick MD, NYC, DC
- Posts
- 16,167
- Vote Rating
- 29
Code to reproduce:
Code:<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <link rel="stylesheet" href="../../sencha-touch-2.0.0/resources/css/sencha-touch.css" type="text/css"> <script type="text/javascript" src="../../sencha-touch-2.0.0/sencha-touch-all-debug.js"></script> <script type="text/javascript"> alert(Ext.util.Format.date('2011-12-21', 'F Y')) </script> </head> <body> </body> </html>
Jay Garcia @ModusJesus || Modus Create co-founder
Ext JS in Action author
Sencha Touch in Action author
Get in touch for Ext JS & Sencha Touch Touch Training
We are also working on Video-based Sencha Touch training: Check it out here.
-
22 Jan 2012 6:01 PM #4Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Redwood City, California
- Posts
- 3,651
- Vote Rating
- 14
Try a date of '2011/12/21'. I ran into this myself just the other day, this will be handled more gracefully in PR4 as we'll try to replace the - with a / and throw an error if that still doesn't get past the internal Date.parse of the browser.
This issue has been fixed for the next release!


Reply With Quote