From 31aeacfccdf512930075ef552be268038ba43bfe Mon Sep 17 00:00:00 2001 From: fbt Date: Thu, 21 Sep 2023 12:14:12 +0000 Subject: [PATCH] date Signed-off-by: fbt --- mod/date | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mod/date b/mod/date index 73b0e27..931312e 100644 --- a/mod/date +++ b/mod/date @@ -1,12 +1,12 @@ # vim: ft=ruby class ModDate < Worker - def mainloop() - while true do - self.write Time.now.strftime(@my_config['format']) - sleep(1) - end - end + def mainloop() + while true do + self.write Time.now.getlocal(@my_config['offset']).strftime(@my_config['format']) + sleep(1) + end + end end Modules.add("date", "ModDate")