System Date/Time

Installing ARpiCADE for the first time? Having issues? Check here first for solutions and tips on installing.

Moderator: dee2eR

Post Reply
guntherm
Super Contributor
Super Contributor
Posts: 96
Joined: Sun Nov 11, 2018 8:58 am

System Date/Time

Post by guntherm » Wed Dec 12, 2018 7:42 am

Upon boot, I want the Arcade to have correct Time/Date since I have wi-fi connection.

The command to accomplish this is:
sudo timedatectl set-timezone America/New_York

Info:
For those that don't know.. timedatectl gets the correct time/date from NTP
set-timezone is how to get right time based upon your timezone. it defaults to UTC time.
To get what you need use this link:
https://en.wikipedia.org/wiki/List_of_t ... time_zones
End Info

What file can I put this in for during boot up it does this command and not interfere with the ARpiCade booting up correctly.

Thnx...

guntherm
Super Contributor
Super Contributor
Posts: 96
Joined: Sun Nov 11, 2018 8:58 am

Re: System Date/Time

Post by guntherm » Thu Dec 13, 2018 2:54 pm

Solved:

Have Wi-Fi enabled and you have a Theme that has a clock option.. Here is how you fix it:

Add this to the end of your "run.sh" on your Boot drive

##NetworkTime
sudo timedatectl set-timezone America/New_York

If your not in the East cost make sure you use the link:
https://en.wikipedia.org/wiki/List_of_time_zones


Hope this helps someone!
Last edited by guntherm on Fri Dec 14, 2018 1:36 pm, edited 1 time in total.

dee2eR
Inventor
Inventor
Posts: 2116
Joined: Tue Aug 22, 2017 2:07 pm

Re: System Date/Time

Post by dee2eR » Fri Dec 14, 2018 1:23 pm

Sorry I didn't answer fast enough to help. Nice job figuring it out and also thanks for posting the answer for anyone else that may want to do it.

Post Reply