# Timezone appears out by 1 hour for Europe/London

**URL:** <https://discourse.nodered.org/t/timezone-appears-out-by-1-hour-for-europe-london/56277>\
**Category:** General\
**Created:** [8 January 2022 02:31 UTC](https://discourse.nodered.org/t/timezone-appears-out-by-1-hour-for-europe-london/56277 "2022-01-08T02:31:27Z")\
**Posts on this page:** 5\
**Page:** 2

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [9 January 2022 19:49 UTC](https://discourse.nodered.org/t/timezone-appears-out-by-1-hour-for-europe-london/56277/22 "2022-01-09T19:49:45Z")

</div>

woah woah woah!

What is the `input from` doing with `1970-01*01T07.00`?

`Input from` should be `msg.payload`

eg:

 ![Screenshot from 2022-01-10 06-50-06](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/0/a03d88aa71fe85b9b9908515d797e0e66bd21a06.png)

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [9 January 2022 21:05 UTC](https://discourse.nodered.org/t/timezone-appears-out-by-1-hour-for-europe-london/56277/23 "2022-01-09T21:05:33Z")

</div>

Looks like it is reporting the time with the UTC DST offset

Time Zone UTC offest UTC DST offset  
ETC/UTC +00:00 +00:00  
ETC/GMT +00:00 +00:00  
Europe/London +00:00 +01:00

see [List of tz database time zones - Wikipedia](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List)

---

<div class="post-metadata">

**Author:** ![Aubs](https://avatars.discourse-cdn.com/v4/letter/a/e47c2d/32.png) [@Aubs](https://discourse.nodered.org/u/Aubs)\
**Post date:** [10 January 2022 22:43 UTC](https://discourse.nodered.org/t/timezone-appears-out-by-1-hour-for-europe-london/56277/24 "2022-01-10T22:43:42Z")

</div>

Thanks for all your responses, I went ahead with the solution I put together, with the modification from @Colin - Thank you.

> [@Aubs](#):
>
> I could just do it as the following, but I thought consistency would be better...
> 
> ```auto
> var data=msg.payload.split(":")
> var hours=data[0]
> var minutes=data[1]
> var seconds=(hours*60*60)+(minutes*60)
> msg.payload=seconds;
> return msg;
> 
> ```

> [@Colin](#):
>
> const seconds=(hours\*60+minutes)\*60

* * *

Other responses:

> [@Trying\_to\_learn](#):
>
> `Input from` should be `msg.payload`

I know, I used the 1970 date in the `Input from` to enable testing.

* * *

> [@zenofmud](#):
>
> Looks like it is reporting the time with the UTC DST offset

Absolutely right, but couldn't understand why BST (British Summer Time) / DST would be showing in January.

> [@Aubs](#):
>
> And the answer is here: [The epoch was an hour late [dontpanicblog.co.uk] ](https://www.dontpanicblog.co.uk/2021/01/01/the-epoch-was-an-hour-late/)

> _Let’s state the obvious. Big Ben is in Westminster, London, England. Very much in the northern hemisphere. On the 1st January 1970, it’s winter. So it’s usually observing GMT/UTC._
> 
> _In 1968 the UK trialled year round daylight saving time. This trial lasted until 1971 and meant that London was permanently on BST (now renamed as British Standard Time) which was GMT+1. Due to this three year exception to the usual spring forward / fall back rule, **Big Ben was not on UTC at the time of the Epoch**._

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [11 January 2022 09:30 UTC](https://discourse.nodered.org/t/timezone-appears-out-by-1-hour-for-europe-london/56277/25 "2022-01-11T09:30:29Z")

</div>

> [@Aubs](#):
>
> In 1968 the UK trialled year round daylight saving time. This trial lasted until 1971

Oh, of course. I should have remembered that, it was a big talking point at the time.

---

<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:** [25 January 2022 09:31 UTC](https://discourse.nodered.org/t/timezone-appears-out-by-1-hour-for-europe-london/56277/26 "2022-01-25T09:31:24Z")

</div>

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

[Previous page](https://discourse.nodered.org/t/timezone-appears-out-by-1-hour-for-europe-london/56277.md?page=1)
