steampipe query shell munges date
and timestamptz
types on output
#4450
Labels
bug
Something isn't working
date
and timestamptz
types on output
#4450
Describe the bug
The steampipe query shell has different behavior than native postgres client(s) when interacting with
date
andtimestamptz
(timestamp with time zone) data types.When connecting to a steampipe database via
psql
I get the expected results (the same as every other postgres database).date
postgres type is year, month, and day only... it does not include time of day.timestamptz
postgres type relies ontime zone
of the current session to determine which timezone should be presented. It does not force the output timezone to match my local computer's timezone. It is possible to get results out of postgres that display the timestamp with time zone in UTC.When using the steampipe interactive query shell, there appears to be "munging" of
date
andtimestamptz
data types that is inconsistent with postgres native handling of those types.Steampipe version (
steampipe -v
)Steampipe v1.0.0
To reproduce
Note: laptop local time is UTC-5
Expected behavior
Note: laptop local time is UTC-5
Additional context
It seems like Steampipe output should be able to give me timestamps in the timezone of my choice (or always UTC), but not force timestamps to match my local computer's timezone. Not providing UTC output makes it challenging to match up the output with other tools that are in UTC. Also, when sharing the output / report with collaborators in multiple different timezones we use "Everything is in UTC" for sanity.
The text was updated successfully, but these errors were encountered: