Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 18b02b9

Browse files
committed
Back out timezone fix. Not needed in jdbc1.
1 parent a62c19e commit 18b02b9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/interfaces/jdbc/org/postgresql/jdbc1/ResultSet.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -488,13 +488,13 @@ public Timestamp getTimestamp(int columnIndex) throws SQLException
488488

489489
SimpleDateFormat df = null;
490490

491-
if (sbuf.length()>23 && subsecond) {
491+
if (s.length()>23 && subsecond) {
492492
df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSSzzzzzzzzz");
493-
} else if (sbuf.length()>23 && !subsecond) {
493+
} else if (s.length()>23 && !subsecond) {
494494
df = new SimpleDateFormat("yyyy-MM-dd HH:mm:sszzzzzzzzz");
495-
} else if (sbuf.length()>10 && subsecond) {
495+
} else if (s.length()>10 && subsecond) {
496496
df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS");
497-
} else if (sbuf.length()>10 && !subsecond) {
497+
} else if (s.length()>10 && !subsecond) {
498498
df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
499499
} else {
500500
df = new SimpleDateFormat("yyyy-MM-dd");

0 commit comments

Comments
 (0)