Skip to content

Commit 228a5e7

Browse files
author
Peter Mount
committed
Removed timezone in ResultSet.getTimestamp()
1 parent 5abea5f commit 228a5e7

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

src/interfaces/jdbc/CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
Thu Jun 01 07:26:00 BST 2000 petermount@it.maidstone.gov.uk
2+
- Removed timezone in getTimestamp() methods in ResultSet.
3+
14
Mon May 15 22:30:00 BST 2000 peter@retep.org.uk
25
- Fixed the message Makefile produces after compiling. It still said
36
about the old Driver class, not the new package. Spotted by

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ public Timestamp getTimestamp(int columnIndex) throws SQLException
437437
if(s==null)
438438
return null;
439439

440-
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:sszzz");
440+
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
441441

442442
try {
443443
return new Timestamp(df.parse(s).getTime());

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ public Timestamp getTimestamp(int columnIndex) throws SQLException
439439
if(s==null)
440440
return null;
441441

442-
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:sszzz");
442+
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
443443

444444
try {
445445
return new Timestamp(df.parse(s).getTime());

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy