Re: [Dhis2-devs] Time Stamp in Web API : Tracked Entity Instances

2016-02-15 Thread Pamod Amarakoon
Thanx Morten. Will update

On Mon, Feb 15, 2016 at 8:29 AM, Morten Olav Hansen 
wrote:

> Hi Pamod
>
> This should be fixed in latest 2.22/trunk.
>
> On Sun, Feb 14, 2016 at 5:27 PM, Pamod Amarakoon  wrote:
>
>> 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+", <--- ISO time
>> in UTC
>> "displayName": "Gender",
>> "created": "2016-02-14T10:13:35.087+",
>> "valueType": "TEXT",
>> "attribute": "BZEpuufLyDE",
>> "value": "male"
>>
>> },
>> {
>>
>> "lastUpdated": "2016-02-14T10:13:35.086+",
>> "displayName": "First Name",
>> "created": "2016-02-14T10:13:35.086+",
>> "valueType": "TEXT",
>> "attribute": "izuwkaOUgFg",
>> "value": "Rukmal"
>>
>> },
>>
>> {
>> "lastUpdated": "2016-02-14T10:13:34.981+",
>> "displayName": "Last Name",
>> "created": "2016-02-14T10:13:34.981+",
>> "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.
>>
>>
>>
>>
>> ___
>> Mailing list: https://launchpad.net/~dhis2-devs
>> Post to : dhis2-devs@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-devs
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>
>
> --
> Morten
>



-- 
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.
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-devs] Time Stamp in Web API : Tracked Entity Instances

2016-02-14 Thread Morten Olav Hansen
Hi Pamod

This should be fixed in latest 2.22/trunk.

On Sun, Feb 14, 2016 at 5:27 PM, Pamod Amarakoon  wrote:

> 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+", <--- ISO time
> in UTC
> "displayName": "Gender",
> "created": "2016-02-14T10:13:35.087+",
> "valueType": "TEXT",
> "attribute": "BZEpuufLyDE",
> "value": "male"
>
> },
> {
>
> "lastUpdated": "2016-02-14T10:13:35.086+",
> "displayName": "First Name",
> "created": "2016-02-14T10:13:35.086+",
> "valueType": "TEXT",
> "attribute": "izuwkaOUgFg",
> "value": "Rukmal"
>
> },
>
> {
> "lastUpdated": "2016-02-14T10:13:34.981+",
> "displayName": "Last Name",
> "created": "2016-02-14T10:13:34.981+",
> "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.
>
>
>
>
> ___
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 
Morten
___
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp