There are some use cases where you can’t use NTP to sync your local time with a timeserver. Especially when you’re behind a http proxy.

There is a simple solution for you to set your local time correctly. It will not be as accurate as NTP obviously, so if you really need an exact time setting you can’t get around NTP. But for most purposes it’s exact enough.

sudo date -s "$(curl -sD - | grep '^Date:' | cut -d' ' -f3-6)Z"

This gets a timestamp from google and sets it as GMT time. If you’ve got the correct timezone settings, your operating system should now display your local time.