From af86a9a01c36002d18b9666f470d7a3fce0e533c Mon Sep 17 00:00:00 2001 From: jwansek Date: Tue, 4 Nov 2025 14:05:46 +0000 Subject: Updated logging on hourly cronjob --- subreddit.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'subreddit.py') diff --git a/subreddit.py b/subreddit.py index 5f12e74..0360dea 100755 --- a/subreddit.py +++ b/subreddit.py @@ -49,7 +49,8 @@ logging.basicConfig( # logger.addHandler(handler) def get_time(): - return time.strftime("%b %d %Y %H:%M:%S", time.gmtime()) + # return time.strftime("%b %d %Y %H:%M:%S", time.gmtime()) + return datetime.datetime.now().astimezone().isoformat() def display(message, concerning = None): logging.info(message) -- cgit v1.2.3