How to set system time&date

General discussions about Automagic and automation in general

Moderator: Martin

Post Reply
heliosone
Posts: 39
Joined: 26 Mar 2016 08:39

How to set system time&date

Post by heliosone » 29 Apr 2016 13:37

Hi everybody!

I need automagic to set the system date.
I tried root command "date -s YYYY-MM-DD" and other variations of the date format... But no luck.
When I tried to also set the time, the tab (tab 3@4.2.2) made a soft reboot.

Why I need to set the time?
I use the tab without a battery, so everytime I plug in power it has forgotten the date.
Strangely it is sometimes 1970 and sometimes 2000 something... Problem is.. It does not connect to the wifi net I want it to use, guess the certificate it uses checks the systemdate or something.
So. I want automagic to just set a 2016 date on startup, so after successful wifi connection the ntp process can set the correct time.

Thanks ahead for input :)

heliosone
Posts: 39
Joined: 26 Mar 2016 08:39

Re: How to set system time&date

Post by heliosone » 30 Apr 2016 06:24

well seems I just used the wrong date format :(

for automagic to set the system date & time use :
=> action : execute root command
=> command : date -s YYYYMMDD.HHmmSS
and your done :)

in my case it works as expected,when I power/boot up the batteryLESS tablet,it cant connect to the internet,but after the date is set into 20160101,the wifi reconnects,and a tad later,the correct date&time via ntp is set.

Post Reply