dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #50000
Recommendations on the use of "lastupdated" in different timezones
Hi all,
I would like to have your insights on how to use the "lastupdated" field
correctly in different timezones.
Our use case is that we want to export events from one instance to another,
and we want to export only the events that have been modified since the
previous export. To do that we store the export date in the DataStore in
order to use it as "lastupdated" parameter in the following export.
The doubt arises when server and client are in different timezones. We
could use the date obtained with "/api/system/info" as export date and the
following export will work correctly, but at client we were unable to show
the date adapted to their timezone because this date has no timezone. And
we would need this just in case they want to modify this date.
Is there a recommendation on how to deal with this?
Thank you in advance!
Víctor