dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #42620
Re: Time stamp in Web API
Hi Pamod
The convention is to generally do this on the client-side. If the Web API
is *correctly converting* local timezone to UTC and you see +0000 at the
end of timestamps, it means the client can change this to whatever timezone
its supposed to be in. That seems to be the appropriate approach since
users of a web system can be on different timezones and it is the
client-side (JavaScript) to correctly display it to be user.
---
Regards,
Saptarshi PURKAYASTHA, Ph.D.
Visiting assistant professor
Department of BioHealth Informatics, IUPUI
On 17 January 2016 at 08:51, Pamod Amarakoon <pamodm@xxxxxxxxx> wrote:
> Dear All,
>
> I currently have an instance of which server timezone, Postgresql time
> zone and java time zone has been set to Asia/Colombo. I can see the data
> been stored in database in local time stamp.
>
> But when retrieving data through web API time stamp is in UTC. Is it
> possible to change the timestamp of web API output to fall back to local
> time zone.
>
> Thank you.
>
> --
> 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@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help : https://help.launchpad.net/ListHelp
>
>
References