This problem was always facing me in Ubuntu.
the problem is that the system clock is some hours forward or backward, and that’s because Ubuntu by default considers that your system clock is adjusted to the UTC time.
So if your system clock is adjusted to your local time, here the problems will start.
Now you should configure your system to consider that you system clock is adjusted to your local time. So, you should do that:-
Open this file with your favorite text editor:
/etc/default/rcS
Find this line:
UTC=yes
replace it with:
UTC=no
Now restart your machine and you will find that your system time is correct.