[Libreoffice-commits] core.git: Branch 'libreoffice-4-1' - connectivity/source
Lionel Elie Mamane
lionel at mamane.lu
Wed Jul 31 06:33:19 PDT 2013
connectivity/source/commontools/dbconversion.cxx | 6 ++++++
1 file changed, 6 insertions(+)
New commits:
commit 2f9c340b4f8f54872eb97880d03c802a1620a1b6
Author: Lionel Elie Mamane <lionel at mamane.lu>
Date: Mon Jul 29 15:26:08 2013 +0200
fdo#67387 skip separating space between date and time in timestamp
Change-Id: I3c38d179f8b2f59e79cd889fa88f4582f650c09e
Reviewed-on: https://gerrit.libreoffice.org/5166
Reviewed-by: LuboÅ¡ LuÅák <l.lunak at suse.cz>
Tested-by: LuboÅ¡ LuÅák <l.lunak at suse.cz>
diff --git a/connectivity/source/commontools/dbconversion.cxx b/connectivity/source/commontools/dbconversion.cxx
index 0b04dbd..847f45f 100644
--- a/connectivity/source/commontools/dbconversion.cxx
+++ b/connectivity/source/commontools/dbconversion.cxx
@@ -450,7 +450,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);
More information about the Libreoffice-commits
mailing list