User Tools

Site Tools

한국어

comfilepi:set_date_and_time

This is an old revision of the document!


Set the Date and Time

Run the following commands in a terminal to set the ComfilePi's date and time and save it to the ComfilePi's RTC.

# Disable synchronization with the time server
sudo timedatectl set-ntp false
 
# Set the date and time (e.g. January 2nd, 2026 5:30am).  This will set both the system time and the RTC's time.
sudo timedatectl set-time '2026-1-2 5:30:00'

NOTE: Modern Linux has a built-in safety feature that checks system's date and time is prior to the date and time that the operating system was built, and if so, uses the build date and time instead of the set date and time. So, if manually setting the date and time for testing, be sure to use a date and time after the operating system's build date and time.

ComfilePi - Industrial Raspberry Pi Panel PC

comfilepi/set_date_and_time.1773989467.txt.gz · Last modified: by mfranklin