DEV Community

Eduardo Issao Ito
Eduardo Issao Ito

Posted on • Updated on

Set current date behind a proxy

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

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

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

Top comments (0)