delphiki / hass-pronote

Pronote integration for Home Assistant
58 stars 9 forks source link

heure local plutot que gmt.... #58

Closed mcarbonneaux closed 9 months ago

mcarbonneaux commented 10 months ago

super plugin !!!

y a moyen d'avoir l'heure local plutot que gmt ?

GaPhi commented 10 months ago

datetime.astimezone()

Le jeu. 16 nov. 2023 à 21:23, CARBONNEAUX Mathieu @.***> a écrit :

super plugin !!!

y a moyen d'avoir l'heure local plutot que gmt ?

— Reply to this email directly, view it on GitHub https://github.com/delphiki/hass-pronote/issues/58, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADUNWNOBMNJL7U4ECT6NG7DYEZY5PAVCNFSM6AAAAAA7OX5MN2VHI2DSMVQWIX3LMV43ASLTON2WKOZRHE4TONZRGA2TGNY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

delphiki commented 10 months ago

L'heure locale à quel endroit / sensor / attribut ?

mcarbonneaux commented 9 months ago

_next_alarm par exemple est en heure gmt et non en heure local:

image je devrais avoir 8h05 et non 7h05 ....

alors que les attribut de _timetable_next_day est a la bonne heure :

image

delphiki commented 9 months ago

Pour moi le next_alarm est correct, vu qu'il y a une anticipation par défaut de 60 minutes (configurable dans les options) sur l'heure de début des cours du prochain jour.

mcarbonneaux commented 9 months ago

haaaaaaa ok ! j'ai compris !!!!