var win = Ti.UI.createWindow(),
date = new Date(),
today = new Date(date.getFullYear(), date.getMonth(), date.getDate(), date.getHours() + 1, 0, 0, 0),
someDate = new Date(1876, 1, 1, 11, 46, 0, 0);
console.log("TODAY: "+today);
console.log("SOME DATE: "+someDate);
function checkDate(e)
{
console.log("> TODAY: "+e.today);
console.log("> SOME DATE: "+e.someDate);
}
Ti.App.addEventListener("forExample", checkDate);
Ti.App.fireEvent("forExample", {today: today, someDate: someDate});
win.open();
*OUT PUT*
[INFO] : TODAY: Fri Sep 13 2013 06:00:00 GMT+0200 (CEST) // RIGHT
[INFO] : SOME DATE: Tue Feb 01 1876 11:46:00 GMT+0100 (CET) // RIGHT
[INFO] : > TODAY: Fri Sep 13 2013 06:00:18 GMT+0200 (CEST) // WRONG
[INFO] : > SOME DATE: Tue Feb 01 1876 11:45:50 GMT+0100 (CET) // WRONG
Why has been changed my (Reporter) name? + Components: iOS *IT IS NOT ONLY ANDROID!*
Issue reproduces Titanium Command-Line Interface, CLI version 3.3.0, Titanium SDK version 3.3.0.GA iOS SDK: 7.1 iOS iPhone Simulator: 7.1
I am able to reproduce this issue with the following environment; iPhone 7 (10.2) Studio 4.9.0.201705302345 Ti SDK 6.1.1.v20170620103414 Appc NPM 4.2.9 Appc CLI 6.2.1 Ti CLI 5.0.13 Alloy 1.9.11 Arrow 2.0.0 Xcode 8.2 (8C38) Node v4.8.2 Java 1.8.0_131