Skip to content
Snippets Groups Projects
Commit 18b02b96 authored by Bruce Momjian's avatar Bruce Momjian
Browse files

Back out timezone fix. Not needed in jdbc1.

parent a62c19e4
No related branches found
No related tags found
No related merge requests found
......@@ -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");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment