Kaustubh-Sable / icatproject

Automatically exported from code.google.com/p/icatproject
0 stars 0 forks source link

RESTAPI - Different formats for datetime in returned entities #158

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
    {
        "Investigation": {
            "id": 910022689,
            "createId": "FROM PROPAGATION",
            "createTime": "Tue Jan 06 10:47:06 GMT 2015",
            "modId": "PROPAGATION",
            "modTime": "Wed May 20 11:24:17 BST 2015",
            "datasets": [],
            "endDate": "2015-01-01T17:00:00.000Z",
            "investigationGroups": [],
            "investigationInstruments": [],
            "investigationUsers": [],
            "keywords": [],
            "name": "CM12180",
            "parameters": [],
            "publications": [],
            "releaseDate": "2017-05-20T11:24:17.000+01:00",
            "samples": [],
            "shifts": [],
            "startDate": "2015-01-01T09:00:00.000Z",
            "studyInvestigations": [],
            "summary": "N/A",
            "title": "B22 2015 Commissioning",
            "visitId": "CM12180-1"
        }
    }

    {
        "Dataset": {
            "id": 230419,
            "createId": "GUARDIAN",
            "createTime": "Wed Jun 16 13:45:12 BST 2010",
            "modId": "GUARDIAN",
            "modTime": "Wed Jul 14 14:34:44 BST 2010",
            "complete": "false",
            "dataCollectionDatasets": [],
            "datafiles": [],
            "description": "unknown",
            "name": "100422",
            "parameters": []
        }
    }

createTime and modTime use a different format compared to other dates. Should 
they not be consistent?

Original issue reported on code.google.com by wayne.ch...@stfc.ac.uk on 20 May 2015 at 10:58