Gladys didn't switch to winter time

Hello.
Gladys did not switch to winter time.
I have a scene that sends the daily production of my solar panel via Telegram at dusk.
On October 28 I received it at 6:30 PM
Today at 4

I confirm the same behavior in my scenes.

Do you have the timezone correctly set in the Docker environment variables?

-e TZ=Europe/Paris

and how do we find this variable?

You can inspect the container with this command

docker inspect gladys | grep TZ

I connected via SSH
I entered

That means the Gladys container has no timezone.

In the documentation, there are all the variables including the timezone (which allows the clock to change automatically) Installation avec Docker | Gladys Assistant

If Gladys was installed a long time ago, maybe it wasn’t present yet :thinking:

So this means that the variable is not present in the image for Raspberry Pi
just to be sure I checked that the time zone was set to

(GMT+01:00) Paris

Ah sorry, if it’s with the Gladys image for Raspberry Pi, it’s different.

The timezone is based on /etc/timezone which is mounted as a volume in the container.

Can you run the following commands?

cat /etc/timezone

docker inspect -f '{{ .Mounts }}' gladys

pi@gladys:~ $ cat /etc/timezone
Europe/Paris
pi@gladys:~ $ docker inspect -f '{{ .Mounts }}' gladys
[{bind  /dev /dev   true rprivate} {bind  /etc/localtime /etc/localtime  ro false rprivate} {bind  /etc/timezone /etc/timezone  ro false rprivate} {bind  /run/udev /run/udev  ro false rprivate} {bind  /sys/class/gpio /sys/class/gpio   true rprivate} {bind  /var/lib/gladysassistant /var/lib/gladysassistant   true rprivate} {bind  /var/run/docker.sock /var/run/docker.sock   true rprivate}]
pi@gladys:~ $ 

Everything is OK :thinking:

I think restarting Gladys will resolve the problem. But it’s best to wait until tomorrow; @pierre-gilles will surely be able to ask for more information or provide a lasting solution.

I restarted Gladys.

Hello everyone :slight_smile:

Yes, it’s a known Gladys bug — we’ve already had the issue during clock changes in the past.

The problem comes from the library we use to schedule scenes (node-schedule); apparently they don’t handle clock changes well.

I saw a few threads discussing the issue:

We need to see whether we can find a fix via this library, or whether we should consider another library.

I created a GitHub issue: