summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/jdbc/Timestamp.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'connectivity/source/drivers/jdbc/Timestamp.cxx')
-rw-r--r--connectivity/source/drivers/jdbc/Timestamp.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/connectivity/source/drivers/jdbc/Timestamp.cxx b/connectivity/source/drivers/jdbc/Timestamp.cxx
index 5337330296b9..508000140ecc 100644
--- a/connectivity/source/drivers/jdbc/Timestamp.cxx
+++ b/connectivity/source/drivers/jdbc/Timestamp.cxx
@@ -104,7 +104,7 @@ java_sql_Time::java_sql_Time( const ::com::sun::star::util::Time& _rOut ): java_
// Convert parameters
OUString sDateStr;
// java.sql.Time supports only whole seconds...
- sDateStr = ::dbtools::DBTypeConversion::toTimeString(_rOut).copy(0, 8);
+ sDateStr = ::dbtools::DBTypeConversion::toTimeStringS(_rOut);
args[0].l = convertwchar_tToJavaString(t.pEnv,sDateStr);
// Turn off Java-Call for the constructor