Hello everyone, I would like to know if there is somehow a solution to deal with this divergence of information between Node-RED and Oracle, my problem is in capturing the date and time of my database, the message arrives in my payload 3 hours apart
Firstly I don't use oracle so cannot comment on the oracle node however it looks like potentially you are updating or reusing an object which is causing values to change by reference.
And without your flow is very difficult to to know for sure.
To help you help yourself, make a small demo flow with an inject, an oracle node with a select query and a debug node. Do the values look correct in this simple flow?
Hi, thanks for responding so fast, let me try to explain myself, what I'm trying to do is simply a "SELECT * FROM" on a table, nothing more.
But the information that I receive does not match the information that is in the database, here I receive "12:30:00" but there is "09:30:00" for example... in all data related to the date /hour I get this difference of 3 hours less
The server and viewer client times are correct, from what I understand the divergence is in the load that node-red understands, instead of GMT-3 it is delivering 000Z
I use Mariadb which has a timezone setting.
I guess oracle has something similar.
Not sure if when I insert a time the database decides to convert it to database time.
Not sure if when I retrieve it the database decides to convert it to server time.
And I think when I look at it the browser converts it to the browser's time zone.
I think the best option is to have database time set to UTC and always store time converted to UTC.
That way you only have to wrestle with the browser? I'm not sure. In UK I only have to worry about it for 6 months of the year.
But I don't know what would happen to existing data if I changed the database timezone.
The problem I have assessing this is your answers are disjointed and are several hours apart - I still have no idea if the times displayed in node-red debug, the server time, the client time and timestamps from oracle are relative to each other or even if they are relevant.
Realmente era o formato, conforme a primeira imagem eu demostro que o payload chega em formato "String" convertendo para "Number" eu consegui ter mais representações