← Back to team overview

dhis2-devs team mailing list archive

Time Stamp in Web API : Tracked Entity Instances

 

Hi,

I noted that time stamp in trackedEntityInstances resource has both
DHIS2/server timestamp and ISO time stamp (in UTC) as below.

{

    "lastUpdated": "2016-02-14 15:43:35.087",  <----- Server time
    "trackedEntity": "kuWSv1dRXIm",
    "created": "2016-01-02 19:28:36.192",
    "orgUnit": "wkMD0saXh3E",
    "trackedEntityInstance": "GT3JaYS9IgJ",
    "inactive": false,
    "relationships": [ ],
    "attributes":

[

{

    "lastUpdated": "2016-02-14T10:13:35.087+0000", <----------- ISO time in
UTC
    "displayName": "Gender",
    "created": "2016-02-14T10:13:35.087+0000",
    "valueType": "TEXT",
    "attribute": "BZEpuufLyDE",
    "value": "male"

},
{

    "lastUpdated": "2016-02-14T10:13:35.086+0000",
    "displayName": "First Name",
    "created": "2016-02-14T10:13:35.086+0000",
    "valueType": "TEXT",
    "attribute": "izuwkaOUgFg",
    "value": "Rukmal"

},

        {
            "lastUpdated": "2016-02-14T10:13:34.981+0000",
            "displayName": "Last Name",
            "created": "2016-02-14T10:13:34.981+0000",
            "valueType": "TEXT",
            "attribute": "C8DBAo2wEYN",
            "value": "Kumarapeli"
        }
    ]

}

Any reason why it appears in 2 formats? Is it possible to get it a single
format.

Thanx

-- 
Regards,
Pamod Amarakoon

Confidentiality Notice: the information contained in this email and any
attachments may be legally privileged and confidential. If you are not an
intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you have
received this e-mail in error, please notify the sender and permanently
delete the e-mail and any attachments immediately. You should not retain,
copy or use this e-mail or any attachments for any purpose, nor disclose
all or any part of the contents to any other person.

Follow ups