From f47a18190c73d87b02e6601f36e839de1edbfd64 Mon Sep 17 00:00:00 2001 From: Justin Date: Thu, 31 Aug 2023 21:43:34 +0800 Subject: [PATCH] timezone for clock 1 and 2 --- stockTicker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stockTicker.py b/stockTicker.py index 21fa107..071c472 100755 --- a/stockTicker.py +++ b/stockTicker.py @@ -7283,7 +7283,7 @@ class StockTicker(): settings = settings1['clock1'] #TIMEZONE NOT WORKING?!?!?!!?!?!?!?!?!?? - timezone = pytz.timezone('America/New_York') + timezone = pytz.timezone(settings['timezone']) font = graphics.Font() font.LoadFont("fonts/6x12.bdf") # Change this to the path of your desired font file @@ -7552,7 +7552,7 @@ class StockTicker(): # Create a canvas to draw on canvas = self.double_buffer - timezone = pytz.timezone('America/New_York') + timezone = pytz.timezone(settings['timezone']) # Set the font and text color font = graphics.Font() font.LoadFont("fonts/clR6x12.bdf")