Encounter datetime should be after the visit start date

I am already using reference application 2.9.0.**[quote=“sopykt, post:33, topic:9804, full:true”] I am facing the same problem. My OpenMRS standalone version is 2.9.0 and java 8. I tried to replace modules created by @dkayiwa although these are older than by my modules version, but it cannot solve the problem. I am running on Ubuntu 18.04. [/quote]

**

What am trying to understand is, if the fresh reference application version 2.9.0 works without problems, why are you replacing any modules in it?

Sorry for misunderstanding. I am using reference application 2.9.0 standalone in localhost to my Ubuntu. In that localhost, I tried to create patient => OK and I start visit for that patient => OK, and I record vital sign and save => show this message “Encounter datetime should be after the visit start date”. So I search google and found this post and I follow the instruction that was fix the problem in comments. So I tried to replace modules of this post (https://issues.openmrs.org/browse/EA-118) and it cannot fix the problem and I put the original modules of 2.9.0 back. And the problem still exist. In https://demo.openmrs.org, I tested and there was no problem as occurs in my localhost.

Unzip your standalone again. Then share the steps to reproduce if you are able to do so on a fresh standalone unzip.

I deleted old folder and unzip file again. I open the terminal in the unzip folder and run the command “java -jar openmrs-standalone.jar” and OpenMRS app opened in my Chrome browser and I login with admin/Admin123. And I create a new patient in Out Patient Department. I start visit for this patient and Visit start date/time is 6:30 instead of current time (16:48) and I record vital sign. When finished recording and it cannot save and show the message:

Are you able to reproduce it here? https://qa-refapp.openmrs.org

No problem in that link. Vital sign able to sve in the link.

The difference I noticed is: When I click start visit in my localhost it shows 06:30

When I click start visit in the link you mentioned it shows no time but only date

This might be problem

When you unzip afresh, the first screen that i would expect to see would not be the openmrs browser log in.

Sorry. I think I couldn’t fully understand. Do you want to see step by step screenshot?

Yes that would greatly help me to reproduce it locally.

These are my step by step screenshots

What does this command return? mvn -v

Not installed. It return - “Command ‘mvn’ not found, but can be installed with: sudo apt install maven” Do I have to install it?

You do not have to. What is the exact version of Java that you are running?

java -version

openjdk version “1.8.0_212”

OpenJDK Runtime Environment (build 1.8.0_212-8u212-b03-0ubuntu1.18.04.1-b03)

OpenJDK 64-Bit Server VM (build 25.212-b03, mixed mode)

Are you a developer or end user?

I just want to develop although I have little experience on programming as well as in Java.

Are you able to set up an instance using the SDK to see if you can reproduce it? https://wiki.openmrs.org/display/docs/OpenMRS+SDK

I set it up and same problem was reproduced. => “Encounter datetime should be after the visit start date”

Now that you are running the sdk, what does this command return? mvn -v