Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit228a5e7

Browse files
author
Peter Mount
committed
Removed timezone in ResultSet.getTimestamp()
1 parent5abea5f commit228a5e7

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
returnnull;
439439

440-
SimpleDateFormatdf =newSimpleDateFormat("yyyy-MM-dd HH:mm:sszzz");
440+
SimpleDateFormatdf =newSimpleDateFormat("yyyy-MM-dd HH:mm:ss");
441441

442442
try {
443443
returnnewTimestamp(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
returnnull;
441441

442-
SimpleDateFormatdf =newSimpleDateFormat("yyyy-MM-dd HH:mm:sszzz");
442+
SimpleDateFormatdf =newSimpleDateFormat("yyyy-MM-dd HH:mm:ss");
443443

444444
try {
445445
returnnewTimestamp(df.parse(s).getTime());

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp