From a68e14fe5ad7caed8657816b9883ed418f3324ec Mon Sep 17 00:00:00 2001 From: Jack Christensen Date: Tue, 23 Jul 2024 17:27:05 -0500 Subject: [PATCH] Explicitly disclaim support for time with time zone --- pgtype/time.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pgtype/time.go b/pgtype/time.go index 61a3abdfd..f8fd94891 100644 --- a/pgtype/time.go +++ b/pgtype/time.go @@ -19,9 +19,11 @@ type TimeValuer interface { // Time represents the PostgreSQL time type. The PostgreSQL time is a time of day without time zone. // -// Time is represented as the number of microseconds since midnight in the same way that PostgreSQL does. Other time -// and date types in pgtype can use time.Time as the underlying representation. However, pgtype.Time type cannot due -// to needing to handle 24:00:00. time.Time converts that to 00:00:00 on the following day. +// Time is represented as the number of microseconds since midnight in the same way that PostgreSQL does. Other time and +// date types in pgtype can use time.Time as the underlying representation. However, pgtype.Time type cannot due to +// needing to handle 24:00:00. time.Time converts that to 00:00:00 on the following day. +// +// The time with time zone type is not supported. Use of time with time zone is discouraged by the PostgreSQL documentation. type Time struct { Microseconds int64 // Number of microseconds since midnight Valid bool