Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

Get a terminal

You will want to get a terminal window open to access the linux system

Open up puTTY.

In the default (Session) category, enter the IP address and port 22. Select SSH

Single command

If you run the following command you wont have to get the timestamp from anywhere else. This pings google.com and gets the time from the response.

sudo date -s "$(curl -s --head http://google.com | grep ^Date: | sed 's/Date: //g')"

Find the current time in a timestamp format

You can go here to find it,

https://www.epochconverter.com/

or

https://www.unixtimestamp.com/

You will want to copy the seconds since Jan 01 1970 from the top area.

Run the update date command

The following command will allow you to set the date on most systems.

sudo date -s @1598275106 

If a system has an NTP server configured, that time will take immediate precedence after you submit the above command.

Some systems will not allow you to change the date time unless other system configuration options are changed, like the ZumIQ from Freewave.

  • No labels