patch for datetime.c

From: Joseph Shraibman <jks(at)selectacast(dot)net>
To: "pgsql-patches(at)postgresql(dot)org" <pgsql-patches(at)postgresql(dot)org>
Subject: patch for datetime.c
Date: 2001-05-04 01:26:26
Message-ID: 3AF20542.209EBA3E@selectacast.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

[root(at)d1 ~/postgresql-7.1/src/backend/utils/adt] diff -C 3
datetime.c.orig datetime.c
*** datetime.c.orig Thu May 3 21:16:37 2001
--- datetime.c Thu May 3 21:19:51 2001
***************
*** 2087,2092 ****
--- 2087,2096 ----

sec = (tm->tm_sec + fsec);

+ if (sec >= 59.995)
+ sec = 59.99; /* Round down to avoid times like
2001-05-03 21:18:60.00-04 */
+
+
switch (style)
{
/* compatible with ISO date formats */

--
Joseph Shraibman
jks(at)selectacast(dot)net
Increase signal to noise ratio. http://www.targabot.com

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Ivan Baldo 2001-05-04 14:36:34 Re: dbf2pg improvements (password, charset convertions,etc.)
Previous Message Bruce Momjian 2001-05-03 23:08:00 Re: JDBC part of KOI8-U [was: patch to support KOI8-U <==> UTF-8 conversions (2nd try)]