# Sunrise/sunset triggers: Offset error on the day of the time change

**URL:** <https://community.gladysassistant.com/t/declencheurs-lever-coucher-de-soleil-erreur-de-decalage-le-jour-du-changement-dheure/8808>\
**Category:** Uncategorized\
**Created:** [April 1, 2024, 9:16am UTC](https://community.gladysassistant.com/t/declencheurs-lever-coucher-de-soleil-erreur-de-decalage-le-jour-du-changement-dheure/8808 "2024-04-01T09:16:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![StephaneB](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/stephaneb/32/15443_2.png) [@StephaneB](https://community.gladysassistant.com/u/StephaneB)\
**Post date:** [April 1, 2024, 9:16am UTC](https://community.gladysassistant.com/t/declencheurs-lever-coucher-de-soleil-erreur-de-decalage-le-jour-du-changement-dheure/8808/1 "2024-04-01T09:16:20Z")

</div>

Hello,

I had noticed a bug in October when switching to winter time (but hadn’t planned to track it precisely), and it happened again this weekend when switching to summer time:  
I have some scenes that use the triggers «&nbsp;At each sunset/sunrise&nbsp;», and they only bug for one day: the Sunday following the night of the time change. Here are the trigger times observed this weekend:

- Friday 29/3 : the sunrise trigger activated at 6h21
- Saturday 30/3 : triggered at 6h19 : ok
- Sunday 1/4 : triggered at 8h17 : not ok, it’s 1 hour too late, it should have been 7h17 (new time)
- Monday 2/4 : triggered at 7h15 : ok, it’s working again

And for sunset:

- Friday 29/3 : the sunset trigger activated at 19h01
- Saturday 30/3 : triggered at 19h03 : ok
- Sunday 1/4 : triggered at 21h04 : not ok, it’s 1 hour too late, it should have been 20h04 (new time)
- Monday 2/4 : I suppose it will work again, with a trigger around 20h05…

That’s it, I don’t know if it’s possible to fix this…

---

<div class="post-metadata">

**Author:** ![cicoub13](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/cicoub13/32/4482_2.png) [@cicoub13](https://community.gladysassistant.com/u/cicoub13)\
**Post date:** [April 1, 2024, 2:52pm UTC](https://community.gladysassistant.com/t/declencheurs-lever-coucher-de-soleil-erreur-de-decalage-le-jour-du-changement-dheure/8808/2 "2024-04-01T14:52:15Z")

</div>

Hello. Yes, the error has already been reported here [Gladys n'est pas passé à l'heure d'hiver - #13 par pierre-gilles](https://community.gladysassistant.com/t/gladys-nest-pas-passe-a-lheure-dhiver/8428/13?u=cicoub13)

This comes from the library we use, but they are not fixing it.

---

<div class="post-metadata">

**Author:** ![StephaneB](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/stephaneb/32/15443_2.png) [@StephaneB](https://community.gladysassistant.com/u/StephaneB)\
**Post date:** [April 1, 2024, 3:53pm UTC](https://community.gladysassistant.com/t/declencheurs-lever-coucher-de-soleil-erreur-de-decalage-le-jour-du-changement-dheure/8808/3 "2024-04-01T15:53:01Z")

</div>

Ah indeed, I’m late to the party 😉 And since it sorts itself out on the second day, it’s not too bad…
