document.addEventListener("DOMContentLoaded", function () { const now = Math.floor(Date.now() / 1000); const field = document.getElementById("form_load_time"); if (field) { field.value = now; } });