From 2337bcc41f824a9cbb36c06031629d25e56b627d Mon Sep 17 00:00:00 2001 From: Amogh-Bharadwaj Date: Wed, 8 May 2024 01:18:29 +0530 Subject: [PATCH] add comment --- flow/connectors/postgres/qvalue_convert.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/flow/connectors/postgres/qvalue_convert.go b/flow/connectors/postgres/qvalue_convert.go index 0c68935368..7704914256 100644 --- a/flow/connectors/postgres/qvalue_convert.go +++ b/flow/connectors/postgres/qvalue_convert.go @@ -513,6 +513,9 @@ func customTypeToQKind(typeName string) qvalue.QValueKind { } } +// Postgres does not like timestamps of the form 2006-01-02 15:04:05 +0000 UTC +// in tstzrange. +// ConvertTimeRangeBounds removes the +0000 UTC part func ConvertTimeRangeBounds(timeBound interface{}) (string, error) { layout := "2006-01-02 15:04:05 -0700 MST" postgresFormat := "2006-01-02 15:04:05"