Wrong date when using old image file

On various Hardware and OS systems: pi / windows / routers / nas, etc

Moderator: leecollings

Post Reply
Bert84
Posts: 13
Joined: Monday 25 May 2015 15:31
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10278
Location: Assen
Contact:

Wrong date when using old image file

Post by Bert84 »

I’ve had a problem with domoticz, so Now I use an old image file from domoticz. I made the image in january. Now the time and date are from january. I tried several linux commands to change this to the right date, whithout succes. Does anyone has an idea what to do?
Bert84
Posts: 13
Joined: Monday 25 May 2015 15:31
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10278
Location: Assen
Contact:

Re: Wrong date when using old image file

Post by Bert84 »

Uiteindelijk is het mijzelf gelukt:
sudo date -s "Mon Jul 2 19:40:26 UTC 2018"
En de datum en tijd staat weer goed.

Edit: Excuse me, in English:
I found out myself:
sudo date -s "Mon Jul 2 19:40:26 UTC 2018"
did the trick
Last edited by Bert84 on Sunday 08 July 2018 13:55, edited 1 time in total.
gordonb3
Posts: 111
Joined: Saturday 31 March 2018 22:24
Target OS: Linux
Domoticz version: Custom
Location: Delft, NL
Contact:

Re: Wrong date when using old image file

Post by gordonb3 »

May like to look into the ntpdate command and ntpd daemon
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest