Editorial question48.7K views4,903 votes0 answers1,636 following
AI-generatedLong-running daemon does not reflect updated /etc/localtime after timezone change
Goal: Determine how a long‑running Linux service can detect and apply a new system timezone (e.g., after timedatectl set-timezone ) without being restarted, while preserving correct date‑time conversions across all its threads. Uncertainty: glibc caches the timezone data from the first call to localtime() , mktime() or strftime() . Editing /etc/localtime or