4 ms·
Why the loop, vs setting the date once?
by nailer 9y ago
Why the loop, vs setting the date once?
- orf 9y agoNTP would resync it, and obviously after X hours it would no longer be end of year even if you set the date in the past. It needed to be end of year day for 2 or 3 days.
- nailer 9y agoyeah I get that but `while(true)` seems excessive. Why not just do it once and disable NTP?
- orf 9y agobecause time moves forwards, and if you set it to 4pm then in 1.5 hours it will be 5.30pm, and the end-of-year stuff will kick in? Three lines of bash seemed simpler. It's a hack, yes, and there are better ways. But really who gives a damn.
- evgen 9y agoI would guess the system was probably running ntpd or some other time sync service that they were unwilling or unable to turn off.