diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2013-07-29 15:26:08 +0200 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2013-07-29 15:27:47 +0200 |
commit | 13fe681d6039ce39793b27629edfd22727f155f8 (patch) | |
tree | c71d2c9845b3ac335970ce59393ef02aec3ccd81 | |
parent | 5e505896a5109bbf4939019ab217e80885288bbf (diff) |
fdo#67387 skip separating space between date and time in timestamp
Change-Id: I3c38d179f8b2f59e79cd889fa88f4582f650c09e
-rw-r--r-- | connectivity/source/commontools/dbconversion.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/connectivity/source/commontools/dbconversion.cxx b/connectivity/source/commontools/dbconversion.cxx index e55fb987d9d4..cd2b1c3d1a3e 100644 --- a/connectivity/source/commontools/dbconversion.cxx +++ b/connectivity/source/commontools/dbconversion.cxx @@ -457,7 +457,13 @@ namespace dbtools utl::Time aTime; sal_Int32 nSeparation = _sSQLString.indexOf( ' ' ); if ( -1 != nSeparation ) + { + const sal_Unicode *p = _sSQLString.getStr() + nSeparation; + const sal_Unicode *const begin = p; + for(;isspace(*p);++p); + nSeparation += p - begin; aTime = toTime( _sSQLString.copy( nSeparation ) ); + } return utl::DateTime(aTime.NanoSeconds, aTime.Seconds, aTime.Minutes, aTime.Hours, aDate.Day, aDate.Month, aDate.Year, false); |