fix date
This commit is contained in:
parent
9128e8ce87
commit
347c87a154
@ -94,7 +94,7 @@ def display_loop(api: Api, cfg: Dict):
|
|||||||
|
|
||||||
elif data == "not-playing":
|
elif data == "not-playing":
|
||||||
draw = ImageDraw.Draw(not_playing_img)
|
draw = ImageDraw.Draw(not_playing_img)
|
||||||
current_time = datetime.now().time()
|
current_time = datetime.now()
|
||||||
draw.rectangle([(00, 120), (119, 190)], fill=(0, 0, 0))
|
draw.rectangle([(00, 120), (119, 190)], fill=(0, 0, 0))
|
||||||
offset = 10 if current_time.hour < 9 else 0
|
offset = 10 if current_time.hour < 9 else 0
|
||||||
draw.text(
|
draw.text(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user