{ "id": "149854", "key": "AC-250", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2015-08-12T07:17:48.000+0000", "created": "2015-07-22T20:28:45.000+0000", "labels": [ "ios", "iphone" ], "versions": [], "issuelinks": [], "assignee": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "updated": "2015-08-12T07:17:48.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": "14544", "name": "Alloy", "description": "Please enter tickets related to the Alloy here." }, { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "I am using String.format to add leading zeros to a given number:\r\n\r\nString.format('M_%1$03d', 60);\r\n\r\nThis should lead to the string 'M_060' but instead I am getting random strings like 'M_295886848' (number is changing after each restart of the simulator). A similar format string already worked in another project that I built with Titanium SDK 3.5.0.", "attachment": [], "flagged": false, "summary": "String.format does not work correctly", "creator": { "name": "saschbro", "key": "saschbro", "displayName": "Sascha Brose", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "saschbro", "key": "saschbro", "displayName": "Sascha Brose", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iOS Simulator, Titanium SDK 4.1.0 SDK", "comment": { "comments": [ { "id": "358302", "author": { "name": "ahossain", "key": "ahossain", "displayName": "Amimul Hossain", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello [~saschbro], Please provide a test case of the problem, So we can test and regenerate. Thanks.", "updateAuthor": { "name": "ahossain", "key": "ahossain", "displayName": "Amimul Hossain", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2015-07-25T09:59:21.000+0000", "updated": "2015-07-25T09:59:21.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }