How to update system time w/o ntpdate

Recently I tried to update time on the server and there was no way to use ntpdate because it was blocked and update raised the following error:

<p>ntpdate pool.ntp.org 6 Nov 21:18:08 ntpdate[23312]: no server suitable for synchronization found</p>

I used this trick to workaround the issue:

date; date -s "$(wget -qSO- --max-redirect=0 google.com 2>&1 | grep Date: | cut -d' ' -f5-8)Z"; date