Becker
1
Hi,
I can´t get the right time for example:
1634641200 should be: 19.10.2021, 13:00:00 [UTC+2]
I tried date/time formater gives me: "1970-01-19T22:04:01.200Z"
and
$moment(payload).locale("de").format('dddd, [der] D. MMMM YYYY [um] HH:mm')
gives me 1970 too
what did I do wrong ?
edit: i think "1634641200" is to short, there must be more "0".
ghayne
2
Where did you get the numbers from?
Becker
3
openweathermap, I just have to multiply with 1000
for example:
msg2.payload = msg.payload.daily[1].dt *1000;
thanky anyway
system
Closed
4
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.