hmis-tools / hmis-api-server

Version 2 of OpenHMIS
Mozilla Public License 2.0
15 stars 11 forks source link

Inconsistent date v. datetime timestamp values #43

Open cecilia-donnelly opened 8 years ago

cecilia-donnelly commented 8 years ago

A user reports:

One other issue that I’m noticing - when I send a new client record, the response from the web server shows the timestamp values with hours, minutes, seconds, and fractional seconds. However, when I fetch that same record back from the web service on a subsequent sync, the timestamp value is set to midnight UTC time.

I understand that we’re not currently storing time values, and that’s OK with MirrorSync, but it is important that the values returned during an insert operation are consistent with the values that we later read from the database, so you can either 1) return the values as midnight UTC time on the insert, or 2) retain the time portion when we later read from the database.