{ "id": "61433", "key": "TIMOB-801", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2012-05-09T10:25:59.000+0000", "created": "2011-04-15T02:36:43.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "core" ], "versions": [], "issuelinks": [], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-28T17:11:24.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

I have been using the datejs library in my app since 0.8. As\r\nof 1.1.0 I have been getting a lot of failures in the Date.parse()\r\nfunction. Parsing times with AM or PM (eg. '8:11 AM') specified\r\nwill always fail and return null. '8:11' without the AM works\r\nfine.

\r\n

I have uploaded a sample app that recreates the issue to\r\npastie. You can checkout the\r\ndate.js from svn, but\r\nTitanium has issues parsing it. I have uploaded a version that gets\r\nrid of the compiler warnings to pastie.

\r\n

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

\r\n

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

{html}", "attachment": [], "flagged": false, "summary": "iOS: datejs parse errors since 1.1.0", "creator": { "name": "charlesjones", "key": "charlesjones", "displayName": "Charles Jones", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "charlesjones", "key": "charlesjones", "displayName": "Charles Jones", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "194269", "author": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "body": "Cannot reproduce with the sample pastie and datajs-en-US.js downloaded from above linked SVN.\r\n\r\nTitanium SDK version: 2.1.0 (05/03/12 17:34 c366287)\r\n\r\nAll JavaScript is properly parsed, and dates are properly formatted.", "updateAuthor": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "created": "2012-05-09T10:25:59.000+0000", "updated": "2012-05-09T10:25:59.000+0000" }, { "id": "416004", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as I am unable to reproduce this issue with the following environment; \r\niPhone 7 (10.2) \r\nMacOS 10.11.6 (15G31) \r\nStudio 4.8.1.201612050850 \r\nTi SDK 6.0.3 GA \r\nAppc NPM 4.2.8 \r\nAppc CLI 6.1.0 \r\nTi CLI 5.0.11 \r\nAlloy 1.9.5 \r\nArrow 1.10.1 \r\nXcode 8.2 (8C38) \r\nNode v4.6.0 \r\nJava 1.7.0_80", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-28T17:11:24.000+0000", "updated": "2017-03-28T17:11:24.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }