By default Ubuntu updates the time from internet, so Ubuntu’s time is correct. Check your windows time and compare with internet time and change it manually.
If the problem persists then change the time in windows boot menu. Otherwise check your semiconductor battery (which is used for time in any computers). If the battery power is down the computers time changes often, you can avoid this by changing the battery it costs nearly 10 to 20 rupees.
Hope you understand the answer, if you have any doubt comment below .