db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject svn commit: r596389 - /db/derby/code/trunk/java/tools/org/apache/derby/iapi/tools/i18n/LocalizedResource.java
Date Mon, 19 Nov 2007 18:24:56 GMT
Author: dag
Date: Mon Nov 19 10:24:55 2007
New Revision: 596389

URL: http://svn.apache.org/viewvc?rev=596389&view=rev
Log:
DERBY-3194 LOCALIZEDDISPLAY of CURRENT_TIMESTAMP returns only the TIME

Patch DERBY-3194.diff.

The problem is that LocalizedResource#getTimestampAsString uses a time
rather than a timestamp formatter.

Modified:
    db/derby/code/trunk/java/tools/org/apache/derby/iapi/tools/i18n/LocalizedResource.java

Modified: db/derby/code/trunk/java/tools/org/apache/derby/iapi/tools/i18n/LocalizedResource.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/tools/org/apache/derby/iapi/tools/i18n/LocalizedResource.java?rev=596389&r1=596388&r2=596389&view=diff
==============================================================================
--- db/derby/code/trunk/java/tools/org/apache/derby/iapi/tools/i18n/LocalizedResource.java
(original)
+++ db/derby/code/trunk/java/tools/org/apache/derby/iapi/tools/i18n/LocalizedResource.java
Mon Nov 19 10:24:55 2007
@@ -399,8 +399,9 @@
 		if (!enableLocalized){
 			return t.toString();
 		}
-		return formatTime.format(t,	new StringBuffer(),
-									new java.text.FieldPosition(0)).toString();
+		return formatTimestamp.format
+			(t, new StringBuffer(),
+			 new java.text.FieldPosition(0)).toString();
 	}
 	public int getColumnDisplaySize(ResultSetMetaData rsm,
 										int columnNumber) throws SQLException{



Mime
View raw message