[TIMOB-801] iOS: datejs parse errors since 1.1.0

GitHub Issuen/a
ResolutionCannot Reproduce
Resolution Date2012-05-09T10:25:59.000+0000
Affected Version/sn/a
Fix Version/sn/a
ReporterCharles Jones
AssigneeNeeraj Gupta


I have been using the http://www.datejs.com/">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 http://pastie.org/911850">pastie. You can checkout the date.js from http://code.google.com/p/datejs/source/checkout">svn, but Titanium has issues parsing it. I have uploaded a version that gets rid of the compiler warnings to http://pastie.org/911863">pastie.

Again, this was working fine in Titanium 0.8 and 1.0, but fails in 1.10 and higher.

It seems to work fine on actual hardware. It only fails on the iPhone simulator (v3.1+).


  1. Dawson Toth 2012-05-09 Cannot reproduce with the sample pastie and datajs-en-US.js downloaded from above linked SVN. Titanium SDK version: 2.1.0 (05/03/12 17:34 c366287) All JavaScript is properly parsed, and dates are properly formatted.
  2. Lee Morris 2017-03-28 Closing ticket as I am unable to reproduce this issue with the following environment; iPhone 7 (10.2) MacOS 10.11.6 (15G31) Studio Ti SDK 6.0.3 GA Appc NPM 4.2.8 Appc CLI 6.1.0 Ti CLI 5.0.11 Alloy 1.9.5 Arrow 1.10.1 Xcode 8.2 (8C38) Node v4.6.0 Java 1.7.0_80

JSON Source