Dear Sam, Quick fix is to reformat the date-time string to your own format e.g yyyy-mm-dd hh-mm-ss
Alex On Sunday, August 28, 2016, Sampath Jayasinghe <[email protected]> wrote: > Hello Friends, > > I'm working on an android app that interacts with DHIS2. It is a > government project. This is one of the projects that Health officials are > really concerned about. They are looking forward to demo this next week. > > Recently we have downloaded the new #124 build of dhis.war. Our well > tested and app seamed crashing on retrieving Events from Events API and we > did a thorough investigation since that part of the code was tested by > several hundreds of users and approved. > > Our findings are as below. > > -* previous Format* > > "programStage": "wS2i9c9hXXz", > "orgUnit": "cRv4S3vBoIK", > "program": "MmGml1Gyb7K", > "trackedEntityInstance": "yNSwSLV7zlN", > "enrollment": "iclnhtQ00gr", > "enrollmentStatus": "ACTIVE", > "href": "http:///nss/api/events/FWvWE950yZf > <http://dhis.pgim.cmb.ac.lk/nss/api/events/FWvWE950yZf>", > "event": "FWvWE950yZf", > "status": "ACTIVE", > *"eventDate": "2016-01-13T18:30:00.000+0000",* > "orgUnitName": "Ambagahawella", > "created": "2016-03-14T13:36:03.956+0000", > "lastUpdated": "2016-03-14T13:36:03.956+0000", > "followup": false, > "dataValues": > > -* Current Format* > > "programStage": "wS2i9c9hXXz", > "orgUnit": "cRv4S3vBoIK", > "dueDate": "2016-06-15T16:08:01.665", > "program": "MmGml1Gyb7K", > "trackedEntityInstance": "luBswqwIXi0", > "enrollment": "gyEbBkDubZb", > "enrollmentStatus": "ACTIVE", > "href": "http://l/nss/api/events/Tq1eNtA7l6R > <http://lankanets.info:8080/nss/api/events/Tq1eNtA7l6R>", > "event": "Tq1eNtA7l6R", > "status": "ACTIVE", > * "eventDate": "2016-06-15T16:02:33.455",* > "orgUnitName": "Ambagahawella", > "attributeCategoryOptions": "ZJyvKtqS7Kx", > "created": "2016-06-15T16:08:01.683", > "lastUpdated": "2016-06-15T16:08:01.683", > "followup": false, > "coordinate": { > "latitude": 0.0, > "longitude": 0.0 > }, > "dataValues": > > > Please note that the older version and latest version has a difference > when it comes to DateTime formats such as *eventDate*. This change seams > to be deadly to us. Our app has so many time based dependencies. > > How can we address these kind of sudden changes? Specially when we don't > have a development team, we may not be able to customize these builds once > apps finished. > > Please provide your valuable thoughts. > > Thank you all in advance. Appreciate the efforts on this great course as > well. > > Sam > > -- Alex Tumwesigye Technical Advisor - DHIS2 (Consultant), Ministry of Health/AFENET | HISP Uganda Kampala Uganda +256 774149 775, + 256 759 800161 Skype ID: talexie IT Consultant (Servers, Networks and Security, Health Information Systems - DHIS2, Disease Outbreak & Surveillance Systems) & Solar Consultant "I don't want to be anything other than what I have been - one tree hill "
_______________________________________________ Mailing list: https://launchpad.net/~dhis2-devs Post to : [email protected] Unsubscribe : https://launchpad.net/~dhis2-devs More help : https://help.launchpad.net/ListHelp

