# Inject node time zones

**URL:** https://discourse.nodered.org/t/inject-node-time-zones/61405
**Category:** General
**Created:** [17 April 2022 18:17 UTC](https://discourse.nodered.org/t/inject-node-time-zones/61405 "2022-04-17T18:17:36Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![EmilWesselink](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/emilwesselink/32/65829_2.png) [@EmilWesselink](https://discourse.nodered.org/u/EmilWesselink)
#### Post date: [17 April 2022 18:17 UTC](https://discourse.nodered.org/t/inject-node-time-zones/61405/1 "2022-04-17T18:17:36Z")

</div>

Hello,

I have a small problem with some NR instances that are not processing DST correct.

I have the current situation:  
3 Node red containers with the same flows on 3 different Raspberry pi 4's in a docker swarm.

One instance of node red is handling Daylight Saving Time correct, 2 are not. The times on the hosts and inside the docker containers are correct.

I know the inject node (on specific time) is working with Cron but I can not check it in the containers. Anybody an idea where it can be wrong or where to look further?

---

<div class="post-metadata">

### Author: ![hardillb](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hardillb/32/12373_2.png) [@hardillb](https://discourse.nodered.org/u/hardillb)
#### Post date: [17 April 2022 20:46 UTC](https://discourse.nodered.org/t/inject-node-time-zones/61405/2 "2022-04-17T20:46:34Z")

</div>

Have you injected the right TZ environment variable into the Docker container?

---

<div class="post-metadata">

### Author: ![EmilWesselink](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/emilwesselink/32/65829_2.png) [@EmilWesselink](https://discourse.nodered.org/u/EmilWesselink)
#### Post date: [17 April 2022 20:53 UTC](https://discourse.nodered.org/t/inject-node-time-zones/61405/3 "2022-04-17T20:53:07Z")

</div>

Yes, I think I did. But all three get the same timezone injected. (They are in a global service, so the same configuration)

---

<div class="post-metadata">

### Author: ![EmilWesselink](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/emilwesselink/32/65829_2.png) [@EmilWesselink](https://discourse.nodered.org/u/EmilWesselink)
#### Post date: [27 April 2022 20:25 UTC](https://discourse.nodered.org/t/inject-node-time-zones/61405/5 "2022-04-27T20:25:15Z")

</div>

I had mounted the timezone and a local time... it was years ago when I made this docker swarm service. Removed those mounts and put the timezone as an environment variable to the service config and it works as expected.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [11 May 2022 20:25 UTC](https://discourse.nodered.org/t/inject-node-time-zones/61405/6 "2022-05-11T20:25:47Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
