DEV Community

loading...

Set current date behind a proxy

adzubla profile image Eduardo Issao Ito ・1 min read

If you system is behind a proxy and you can't use NTP, you can try this little trick:

sudo date -s "$(curl -s http://www.timeapi.org/utc/now)"

Be advised that after some time, your computer clock might drift away from standard clock. So this is just a temporary solution.

Discussion (0)

pic
Editor guide