datejs parse errors on iPhone since 1.1.0
I have been using the datejs library in my app since 0.8. As of 1.1.0 I have been getting a lot of failures in the Date.parse() function. Parsing times with AM or PM (eg. '8:11 AM') specified will always fail and return null. '8:11' without the AM works fine.
I have uploaded a sample app that recreates the issue to pastie. You can checkout the date.js from svn, but Titanium has issues parsing it. I have uploaded a version that gets rid of the compiler warnings to pastie
Again, this was working fine in Titanium 0.8 and 1.0, but fails in 1.10 and higher.
eta: It seems to work fine on actual hardware. It only fails on the iPhone simulator (v3.1+).
4 Answers
-
i am also getting issues with this every time i try to run titanium with debug to use breakpoints it just hits the date.js plugin and titanium gives a lot of errors i have tried the latest
-
Dates appear to be broken in Titanium… compare to node.js:
var datestr = "2011-02-25T23:48:16Z"; console.log(Date.parse(datestr)); 1298677696000
Where as Titanium:
var datestr = "2011-02-25T23:48:16Z"; Ti.API.info(Date.parse(datestr)); [INFO] nan
Not sure of a good work around…
-
Yes, I'm also having this problem, I don't know if Appcelerator is working on this, I hope so…
-
Any news on this one? Is it working now?