This issue has been fixed for the next release!
  1. #1
    Sencha User cyberwombat's Avatar
    Join Date
    Oct 2011
    Posts
    237
    Vote Rating
    2
    cyberwombat is on a distinguished road

      0  

    Default [PR3] Ext.util.format.date not working in mobile safari

    [PR3] Ext.util.format.date not working in mobile safari


    This line:
    Code:
    Ext.util.Format.date('2011-12-21', 'F Y');
    Renders fine in OSX safari but on the latest IOS5 safari it renders as

    Code:
    undefined 0NaN
    Tried no format, different dates etc.. same result.

  2. #2
    Sencha - Community Support Team jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    DC Area =)
    Posts
    16,364
    Vote Rating
    81
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    This is a bug with PR3:


    Moving to bugs...

  3. #3
    Sencha - Community Support Team jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    DC Area =)
    Posts
    16,364
    Vote Rating
    81
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    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>

  4. #4
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    18
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    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.

    Sencha Inc

    Jamie Avins

    @jamieavins