From 0e649604b829506228a94a348e0a748a01bfff19 Mon Sep 17 00:00:00 2001 From: RĂ¼diger Timm Date: Mon, 24 Oct 2005 07:20:24 +0000 Subject: INTEGRATION: CWS dba201d (1.13.10); FILE MERGED 2005/09/27 08:12:26 oj 1.13.10.1: commits from dba201c --- connectivity/source/commontools/DateConversion.cxx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'connectivity') diff --git a/connectivity/source/commontools/DateConversion.cxx b/connectivity/source/commontools/DateConversion.cxx index ef0c790775fe..650cf53398ff 100644 --- a/connectivity/source/commontools/DateConversion.cxx +++ b/connectivity/source/commontools/DateConversion.cxx @@ -4,9 +4,9 @@ * * $RCSfile: DateConversion.cxx,v $ * - * $Revision: 1.13 $ + * $Revision: 1.14 $ * - * last change: $Author: rt $ $Date: 2005-09-08 05:09:08 $ + * last change: $Author: rt $ $Date: 2005-10-24 08:20:24 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -146,15 +146,14 @@ using namespace ::com::sun::star::beans; DateTime aDateTime; // check if this is really a timestamp or only a date - if ((_rVal >>= aDateTime) && - (aDateTime.Hours || aDateTime.Minutes || aDateTime.Seconds || aDateTime.HundredthSeconds)) + if ( _rVal >>= aDateTime ) { if (bQuote) aRet += ::rtl::OUString::createFromAscii("{TS '"); aRet += DBTypeConversion::toDateTimeString(aDateTime); if (bQuote) aRet += ::rtl::OUString::createFromAscii("'}"); break; } - // else continue + break; } case DataType::DATE: { -- cgit