timezone fix (reversed?)
This commit is contained in:
parent
f47a18190c
commit
c059825718
@ -7284,7 +7284,10 @@ class StockTicker():
|
|||||||
|
|
||||||
#TIMEZONE NOT WORKING?!?!?!!?!?!?!?!?!??
|
#TIMEZONE NOT WORKING?!?!?!!?!?!?!?!?!??
|
||||||
timezone = pytz.timezone(settings['timezone'])
|
timezone = pytz.timezone(settings['timezone'])
|
||||||
|
if '+' in timezone:
|
||||||
|
timezone = timezone.replace('+', '-')
|
||||||
|
elif '-' in timezone:
|
||||||
|
timezone = timezone.replace('-', '+')
|
||||||
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
|
||||||
font2 = graphics.Font()
|
font2 = graphics.Font()
|
||||||
@ -7553,6 +7556,10 @@ 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(settings['timezone'])
|
timezone = pytz.timezone(settings['timezone'])
|
||||||
|
if '+' in timezone:
|
||||||
|
timezone = timezone.replace('+', '-')
|
||||||
|
elif '-' in timezone:
|
||||||
|
timezone = timezone.replace('-', '+')
|
||||||
# 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