connectivity/source/commontools/dbconversion.cxx | 6 ++++++ 1 file changed, 6 insertions(+)
New commits: commit 2f9c340b4f8f54872eb97880d03c802a1620a1b6 Author: Lionel Elie Mamane <[email protected]> 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 <[email protected]> Tested-by: LuboÅ¡ LuÅák <[email protected]> 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);
_______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
