NTP doesn't work - always Mar 1, 2020

My K1 Max always has the date of Mar 1, 2020 when it starts up. I can set the date by SSHing in, but it will reset after restart. I’ve tried altering ntp.conf, with no success. I’ve been trying to figure out how to disable NTP altogether, such that manually setting the date once would resolve the issue, but no luck figuring that out either.

I’ve found various “solutions” involving installing various scripts and commands and such, but this shouldn’t be necessary.

Just curious but where are you seeing the time /date…?
I must have missed it on mine… :frowning:
Did you set the time zone…?

Yes, I set the timezone. But that wouldn’t affect the date regardless. You can see the dates it thinks it is in the file lists in Device > Details view in Creality Print. The various file lists are sorted chronologically, but that’s messed up by the resetting date/time… unless I leave it on all the time.

Like this section here… My times look ok though… I wouldn’t know how to change the times…
I would think the time is set automatically from the network…but like you said that’s not working… :frowning:

I know this is an old topic but I just came across this.
Looks like the hardware clock is somehow causing the ntp not to keep the changes after manually updating it.

After configuring the date e.g:

~ rm -rf /etc/localtime
~ ln -s /usr/share/zoneinfo/Australia/Perth /etc/localtime
~ /etc/init.d/S49ntp restart
~ date

You’d expect the time to update. I even changed the ntp servers to point to local ones and still it doesn’t appear to make any difference.

If you check the hwclock you can see it will show the 2020 date:

root@K1Max-75AD /root [#] hwclock -r
Wed Mar  4 05:25:16 2020  0.000000 seconds

After a reboot, my time is set back to what it was. The way to resolve that for me was to set the date again, and the change the date on the hwclock as well:
Set the date manually e.g.

root@K1Max-75AD /root [#] date -s "2025-02-23 14:43:51"
Sun Feb 23 14:43:51 AWST 2025

Set the hwclock date and time

root@K1Max-75AD /root [#] hwclock -w

-w Set hardware clock from system time

Check the date and hwclock are now the same:

root@K1Max-75AD /root [#] date
Sun Feb 23 14:44:08 AWST 2025
root@K1Max-75AD /root [#] hwclock -r
Sun Feb 23 14:44:17 2025  0.000000 seconds
root@K1Max-75AD /root [#] cat /sys/class/rtc/rtc0/time
14:44:28
root@K1Max-75AD /root [#] cat /sys/class/rtc/rtc0/date
2025-02-23

reboot and check again:

root@K1Max-75AD /root [#] date
Sun Feb 23 14:51:44 AWST 2025
root@K1Max-75AD /root [#] hwclock
Sun Feb 23 14:51:55 2025  0.000000 seconds

So far this has been the only way I have been able to keep the date and time to stick. It was annoying seeing the wrong time and date on the recorded time lapse videos.
Hope that helps someone!