You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Joe Bowser (JIRA)" <ji...@apache.org> on 2013/06/08 01:46:20 UTC

[jira] [Resolved] (CB-3736) navigator.globalization.getDatePattern always returns "dd/MM/yyyy HH:mm"

     [ https://issues.apache.org/jira/browse/CB-3736?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joe Bowser resolved CB-3736.
----------------------------

    Resolution: Fixed

Yeah, this was reproducible because the JSON parsing of the options was broken. After a quick cleanup, things appear to be working on this end.
                
> navigator.globalization.getDatePattern always returns "dd/MM/yyyy HH:mm"
> ------------------------------------------------------------------------
>
>                 Key: CB-3736
>                 URL: https://issues.apache.org/jira/browse/CB-3736
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.7.0
>         Environment: Test device version: 4.2.1
>            Reporter: Jamie Clarke
>            Assignee: Joe Bowser
>
> Using the snippet from the cordova documentation the result is always "dd/MM/yyyy HH:mm" no matter what options are provided. In comparison dateToString works fine.
> Snippet:
> {code:javascript}
> navigator.globalization.getDatePattern(
>     function (date) {alert('pattern: ' + date.pattern + '\n');},
>     function () {alert('Error getting pattern\n');},
>     {formatLength:'short', selector:'date'}
>   );
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira