Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
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!