From 18b02b9673fe209e9e59a54918070d325b2698eb Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Tue, 22 May 2001 19:19:55 +0000 Subject: [PATCH] Back out timezone fix. Not needed in jdbc1. --- src/interfaces/jdbc/org/postgresql/jdbc1/ResultSet.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/interfaces/jdbc/org/postgresql/jdbc1/ResultSet.java b/src/interfaces/jdbc/org/postgresql/jdbc1/ResultSet.java index 467476f833..aae8cf6ff2 100644 --- a/src/interfaces/jdbc/org/postgresql/jdbc1/ResultSet.java +++ b/src/interfaces/jdbc/org/postgresql/jdbc1/ResultSet.java @@ -488,13 +488,13 @@ public class ResultSet extends org.postgresql.ResultSet implements java.sql.Resu SimpleDateFormat df = null; - if (sbuf.length()>23 && subsecond) { + if (s.length()>23 && subsecond) { df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSSzzzzzzzzz"); - } else if (sbuf.length()>23 && !subsecond) { + } else if (s.length()>23 && !subsecond) { df = new SimpleDateFormat("yyyy-MM-dd HH:mm:sszzzzzzzzz"); - } else if (sbuf.length()>10 && subsecond) { + } else if (s.length()>10 && subsecond) { df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS"); - } else if (sbuf.length()>10 && !subsecond) { + } else if (s.length()>10 && !subsecond) { df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); } else { df = new SimpleDateFormat("yyyy-MM-dd"); -- 2.40.0