Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Amogh-Bharadwaj committed May 7, 2024
1 parent 9a464d6 commit 2337bcc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions flow/connectors/postgres/qvalue_convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 2337bcc

Please sign in to comment.