--- a/teal-src/prosody/plugins/mod_cron.tl Sun Oct 08 18:21:14 2023 +0200
+++ b/teal-src/prosody/plugins/mod_cron.tl Sun Jul 30 13:03:40 2023 +0200
@@ -56,11 +56,6 @@
task.save = save_task;
module:log("debug", "%s task %s added, last run %s", task.when, task.id,
task.last and datetime.datetime(task.last) or "never");
- if task.last == nil then
- -- initialize new tasks so e.g. daily tasks run at ~midnight UTC for now
- local now = os.time();
- task.last = now - now % periods[task.when];
- end
return true;
end