diff options
Diffstat (limited to 'teal-src')
-rw-r--r-- | teal-src/plugins/mod_cron.tl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/teal-src/plugins/mod_cron.tl b/teal-src/plugins/mod_cron.tl index 078869a9..8d1fa452 100644 --- a/teal-src/plugins/mod_cron.tl +++ b/teal-src/plugins/mod_cron.tl @@ -1,6 +1,7 @@ module:set_global(); local async = require "util.async"; +local datetime = require "util.datetime"; local record map_store<K,V> -- TODO move to somewhere sensible @@ -53,7 +54,7 @@ function module.add_host(host_module : moduleapi) end task.save = save_task; module:log("debug", "%s task %s added, last run %s", task.when, task.id, - task.last and require"util.datetime".datetime(task.last) or "never"); + task.last and datetime.datetime(task.last) or "never"); if task.last == nil and task.when == "daily" then -- initialize daily tasks to run at ~midnight UTC for now local now = os.time(); |