timezone for clock 1 and 2
This commit is contained in:
parent
f88a7c765d
commit
f47a18190c
@ -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")
|
||||||
|
Loading…
Reference in New Issue
Block a user