timezone for clock 1 and 2

This commit is contained in:
Justin 2023-08-31 21:43:34 +08:00 committed by GitHub
parent f88a7c765d
commit f47a18190c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7283,7 +7283,7 @@ class StockTicker():
settings = settings1['clock1'] settings = settings1['clock1']
#TIMEZONE NOT WORKING?!?!?!!?!?!?!?!?!?? #TIMEZONE NOT WORKING?!?!?!!?!?!?!?!?!??
timezone = pytz.timezone('America/New_York') timezone = pytz.timezone(settings['timezone'])
font = graphics.Font() font = graphics.Font()
font.LoadFont("fonts/6x12.bdf") # Change this to the path of your desired font file 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 # Create a canvas to draw on
canvas = self.double_buffer canvas = self.double_buffer
timezone = pytz.timezone('America/New_York') timezone = pytz.timezone(settings['timezone'])
# Set the font and text color # Set the font and text color
font = graphics.Font() font = graphics.Font()
font.LoadFont("fonts/clR6x12.bdf") font.LoadFont("fonts/clR6x12.bdf")