{ "id": "171640", "key": "TIMOB-26028", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": [ { "id": "20115", "name": "Release 7.3.0", "archived": false, "released": true, "releaseDate": "2018-08-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-05-11T14:53:45.000+0000", "created": "2018-05-09T23:04:10.000+0000", "epic": { "id": 170942, "key": "TIMOB-25710", "name": "SDK Parity effort", "summary": "SDK Parity effort", "color": { "key": "color_1" }, "done": false }, "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "20102", "name": "Release 7.1.1", "archived": false, "released": true, "releaseDate": "2018-05-02" } ], "issuelinks": [ { "id": "56513", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "outwardIssue": { "id": "171637", "key": "TIMOB-26025", "fields": { "summary": "TiAPI: Add Ti.Filesystem.File parity across platforms", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2018-06-22T15:50:56.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": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "Fix some parity issues we're looking at deprecating Ti.Filesystem.File #createTimestamp() and #modificationTimestamp() to be replaced by new #createdAt() and #modifiedAt() methods that return a Date.\r\n\r\nBasically the timestamp methods return a Date on iOS and Number on the rest. There's not a nice non-breaking way to fix that, so we'd like to deprecate the existing methods and add new variants that return Date on all platforms (since it's pretty easy to turn that into a timestamp if necessary).\r\n", "attachment": [], "flagged": false, "summary": "Windows: Add Ti.Filesystem.File parity across platforms", "creator": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "closedSprints": [ { "id": 1034, "state": "closed", "name": "2018 Sprint 10 SDK", "startDate": "2018-05-07T00:03:21.636Z", "endDate": "2018-05-21T00:03:00.000Z", "completeDate": "2018-05-20T20:54:58.928Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "437551", "author": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile_windows/pull/1235", "updateAuthor": { "name": "kiguchi", "key": "kota", "displayName": "Kota Iguchi", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2018-05-10T02:09:13.000+0000", "updated": "2018-05-10T02:09:13.000+0000" }, { "id": "438637", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "*Closing ticket*, Improvement verified in SDK Version: {{7.3.0.v20180618062809}}. \r\n\r\n{code:java}\r\nUsing the following test case:\r\nvar file = Ti.Filesystem.getFile(Ti.Filesystem.resourcesDirectory, 'app.js');\r\n\r\nTi.API.info('createTimestamp: ' + file.createTimestamp()); // This should show warning message.\r\nTi.API.info('modificationTimestamp: ' + file.modificationTimestamp()); // This should show warning message.\r\n\r\nvar created = file.createdAt(); // This should return Date value.\r\nvar modified = file.modifiedAt(); // This should return Date value.\r\n\r\nTi.API.info('createdAt: ' + (created instanceof Date) + ' ' + created);\r\nTi.API.info('modifiedAt: ' + (modified instanceof Date) + ' ' + modified);\r\n{code}\r\n\r\nThe following can be seen: \r\n\r\n+ deprecated File.createTimestamp and modificationTimestamp\r\n+ added createdAt and modifiedAt that returns Date value\r\n\r\nInformation can be found at: https://github.com/appcelerator/titanium_mobile_windows/pull/1235.\r\n\r\n*Test Environment*\r\n{code:java}\r\nAPPC Studio: 5.0.0.201712081732\r\nversion 7.0.4\r\nWs-Local\r\nOperating System:\r\nName = Microsoft Windows 10 Pro\r\nVersion = 10.0.15063\r\nArchitecture = 32bit\r\nCPUs = 4\r\nMemory = 16.0GB\r\nNode.js:\r\nNode.js Version = 8..9.1\r\n{code}\r\n", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-06-22T15:48:56.000+0000", "updated": "2018-06-22T15:50:39.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }