node-red-contrib-postgresql icon indicating copy to clipboard operation
node-red-contrib-postgresql copied to clipboard

timestamp without timezone format issue

Open FrederikPM opened this issue 10 months ago • 4 comments

Querying a table with a column of the type timestamp without timezone returns the time in the given format: [date][“T”][time][“Z”]. However, the “Z” notation indicates that the time is UTC and as such I think the format should be changed to [date][“T”][time].

FrederikPM avatar Apr 11 '24 11:04 FrederikPM

Hello, Can you try your query directly on the PostgreSQL database? I do not believe this Node-RED node does any transformation there

Alkarex avatar Apr 11 '24 11:04 Alkarex

Yes. The following query: SELECT time FROM datatable LIMIT 1 gives: billede

FrederikPM avatar Apr 11 '24 13:04 FrederikPM

And could you show some details of your flow / query in Node-RED as well as the result you get?

Alkarex avatar Apr 11 '24 13:04 Alkarex

Flow: billede Query: SELECT time FROM datatable LIMIT 1; Debug result: billede

FrederikPM avatar Apr 11 '24 13:04 FrederikPM