mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-06 15:24:56 +08:00
Back out timezone fix. Not needed in jdbc1.
This commit is contained in:
parent
a62c19e4ec
commit
18b02b9673
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user