You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2014/09/15 15:26:34 UTC

[jira] [Commented] (CB-7548) [BlackBerry10] dateToString format error

    [ https://issues.apache.org/jira/browse/CB-7548?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14133884#comment-14133884 ] 

ASF subversion and git services commented on CB-7548:
-----------------------------------------------------

Commit c4e3eda7db65e3018c40fe103622e5b764139e02 in cordova-plugin-globalization's branch refs/heads/master from Lianghui Chen
[ https://git-wip-us.apache.org/repos/asf?p=cordova-plugin-globalization.git;h=c4e3eda ]

CB-7548 [BlackBerry10] Allow any numeric type as date in dateToString method.


> [BlackBerry10] dateToString format error
> ----------------------------------------
>
>                 Key: CB-7548
>                 URL: https://issues.apache.org/jira/browse/CB-7548
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Globalization
>            Reporter: Bryan Higgins
>            Assignee: Bryan Higgins
>            Priority: Minor
>
> Tested on Z10, trunk (2558)
> and iOS 7.1
> --- Steps to Reproduce: ---
> var date1 = new Date(01/01/01);
> function dateToStringSuccessCallback(date) {
> 	console.log("date: " + date.value);
> }
> function errorCallback(err) {
>     console.log("ERROR: " + err.message);   
> }
> navigator.globalization.dateToString(date1, dateToStringSuccessCallback, errorCallback, {formatLength:'full', selector:'date and time'} );
> When running the above date in iOS and BlackBerry results in a date of 
> Wed Dec 31 1969 19:00:00 GMT-0500 (EST)
> But when executing the dateToString on the same value, results in two different values.
> --- Actual Result: ---
> on iOS you get:
> 12/31/69, 7:00 PM
> on BlackBerry you will get:
> Date in wrong format!



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)