Hi. I have read the entire forum on this problem that is also presented to me. I don’t know how to solve it.
“Encounter datetime should be after the visit start date”, when I try to enter the details of a visit to a patient who is already registered. I have tried several cases. The problem is that the openmrs date is one day ahead of my computer date.
My system is: centos 7, tomcat8. I installed Reference Application 2.10.0: I unzipped the ./OpenMRS folder without problems.
I know this is an old issue, but I just installed the downloadable version of OpenMRS 2.5 (for Enterprise, not standalone edition) from openmrs.org and encountered the same problem with dates and the message “The encounter date and time must be after the visit start date.”
The solution I found was to replace the Java library “Joda-Time.” In my OpenMRS installation, version 2.10.12 of this library was implemented, and I replaced it with version 2.12.7 in the Tomcat directory openmrs/WEB-INF/lib, and the problem was resolved.
My environment:
Java openjdk 11.0.24, Tomcat 9.0.93, MySQL 8 community server