From 313ed1ed9498f977262e180a080c7748197ced5c Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sun, 9 Oct 2005 17:21:47 +0000 Subject: Fix (hopefully for the last time) problems with datetime values displaying like '23:59:60' because of fractional-second roundoff problems. Trying to control this upstream of the actual display code was hopeless; the right way is to explicitly round fractional seconds in the display code and then refigure the results if the fraction rounds up to 1. Per bug #1927. --- contrib/btree_gist/btree_ts.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'contrib/btree_gist') diff --git a/contrib/btree_gist/btree_ts.c b/contrib/btree_gist/btree_ts.c index 6c9481b4b2e..119c45093eb 100644 --- a/contrib/btree_gist/btree_ts.c +++ b/contrib/btree_gist/btree_ts.c @@ -122,9 +122,7 @@ tstz_to_ts_gmt(Timestamp *gmt, TimestampTz *ts) *gmt -= (tz * INT64CONST(1000000)); #else *gmt -= tz; - *gmt = JROUND(*gmt); #endif - } return gmt; } -- cgit v1.2.3