[Libreoffice-commits] .: 2 commits - automation/source basic/source chart2/source connectivity/source cui/source editeng/source extensions/source filter/source forms/source framework/source l10ntools/source padmin/source reportdesign/source sc/inc sc/source sd/source sfx2/source svl/source svtools/source svx/inc svx/source sw/source tools/Executable_rscdep.mk tools/inc tools/Library_tl.mk tools/source unotools/source uui/source vbahelper/source vcl/source xmloff/source xmlsecurity/source

Eike Rathke erack at kemper.freedesktop.org
Thu Dec 1 12:04:43 PST 2011


 automation/source/server/profiler.cxx                  |    2 -
 automation/source/server/profiler.hxx                  |    2 +
 automation/source/server/sta_list.cxx                  |    4 +-
 automation/source/server/statemnt.cxx                  |   32 +++++++++--------
 automation/source/simplecm/simplecm.cxx                |   10 +++--
 automation/source/testtool/objtest.cxx                 |    4 +-
 automation/source/testtool/objtest.hxx                 |    2 +
 automation/source/testtool/tcommuni.cxx                |    5 +-
 basic/source/app/msgedit.cxx                           |    4 +-
 basic/source/runtime/methods.cxx                       |   14 +++----
 chart2/source/view/axes/DateScaling.cxx                |    2 -
 chart2/source/view/main/ChartView.cxx                  |    2 -
 connectivity/source/drivers/calc/CTable.cxx            |    1 
 connectivity/source/drivers/dbase/DTable.cxx           |    2 -
 connectivity/source/drivers/file/FDateFunctions.cxx    |    6 +--
 cui/source/dialogs/postdlg.cxx                         |    8 ++--
 cui/source/options/optupdt.cxx                         |    4 +-
 editeng/source/items/flditem.cxx                       |   12 ++++--
 editeng/source/misc/svxacorr.cxx                       |   23 ++++++------
 editeng/source/uno/unofield.cxx                        |    2 -
 extensions/source/propctrlr/standardcontrol.cxx        |    2 -
 extensions/source/propctrlr/usercontrol.cxx            |    4 +-
 filter/source/msfilter/svdfppt.cxx                     |    6 +--
 filter/source/xsltdialog/xmlfileview.cxx               |    6 +--
 forms/source/xforms/xpathlib/xpathlib.cxx              |    6 +--
 framework/source/jobs/jobdata.cxx                      |    2 -
 framework/source/services/license.cxx                  |    4 +-
 l10ntools/source/export2.cxx                           |    4 +-
 padmin/source/padialog.cxx                             |    4 +-
 reportdesign/source/ui/dlg/DateTime.cxx                |    4 +-
 sc/inc/chgviset.hxx                                    |    4 +-
 sc/inc/externalrefmgr.hxx                              |    2 +
 sc/source/core/data/attrib.cxx                         |    2 -
 sc/source/core/data/postit.cxx                         |    2 -
 sc/source/core/data/stlpool.cxx                        |    2 -
 sc/source/core/tool/chgtrack.cxx                       |    4 ++
 sc/source/core/tool/chgviset.cxx                       |    5 ++
 sc/source/core/tool/editutil.cxx                       |    3 +
 sc/source/core/tool/interpr2.cxx                       |    6 +--
 sc/source/filter/excel/xlpivot.cxx                     |    3 +
 sc/source/filter/xcl97/XclExpChangeTrack.cxx           |    2 -
 sc/source/filter/xcl97/XclImpChangeTrack.cxx           |    2 -
 sc/source/filter/xml/xmlimprt.cxx                      |    4 +-
 sc/source/ui/dbgui/scendlg.cxx                         |    4 +-
 sc/source/ui/docshell/externalrefmgr.cxx               |    4 +-
 sc/source/ui/miscdlgs/acredlin.cxx                     |    2 -
 sc/source/ui/pagedlg/scuitphfedit.cxx                  |    8 ++--
 sc/source/ui/view/preview.cxx                          |    6 ++-
 sc/source/ui/view/printfun.cxx                         |    2 -
 sc/source/ui/view/viewfun6.cxx                         |    4 +-
 sd/source/filter/html/pubdlg.cxx                       |    2 -
 sd/source/ui/annotations/annotationmanager.cxx         |    5 +-
 sd/source/ui/app/sdmod2.cxx                            |    4 +-
 sd/source/ui/app/sdpopup.cxx                           |    4 +-
 sd/source/ui/dlg/headerfooterdlg.cxx                   |    4 +-
 sd/source/ui/tools/TimerBasedTaskExecution.cxx         |    4 +-
 sd/source/ui/unoidl/unomodel.cxx                       |    2 -
 sd/source/ui/view/DocumentRenderer.cxx                 |    4 +-
 sd/source/ui/view/drviewsb.cxx                         |    4 +-
 sd/source/ui/view/outlnvs2.cxx                         |    4 +-
 sfx2/source/appl/sfxpicklist.cxx                       |    2 -
 sfx2/source/bastyp/helper.cxx                          |    2 -
 sfx2/source/dialog/dinfdlg.cxx                         |    4 +-
 sfx2/source/dialog/versdlg.cxx                         |    4 +-
 sfx2/source/doc/SfxDocumentMetaData.cxx                |    2 -
 sfx2/source/doc/docfile.cxx                            |    4 +-
 sfx2/source/doc/objcont.cxx                            |    6 +--
 sfx2/source/doc/objmisc.cxx                            |    2 -
 sfx2/source/doc/objstor.cxx                            |    2 -
 sfx2/source/doc/objxtor.cxx                            |    2 -
 sfx2/source/view/viewprn.cxx                           |    2 -
 svl/source/items/dateitem.cxx                          |    3 +
 svl/source/numbers/zforfind.cxx                        |    4 +-
 svtools/source/contnr/contentenumeration.hxx           |    1 
 svtools/source/control/calendar.cxx                    |    9 ++--
 svtools/source/control/taskstat.cxx                    |    4 +-
 svx/inc/svx/galmisc.hxx                                |    5 ++
 svx/source/dialog/ctredlin.cxx                         |   26 +++++++++----
 svx/source/gallery2/galbrws1.cxx                       |    2 -
 svx/source/svdraw/svdmodel.cxx                         |    5 ++
 svx/source/svdraw/svdotxln.cxx                         |    3 +
 sw/source/core/doc/doccomp.cxx                         |    2 -
 sw/source/core/doc/docfld.cxx                          |    4 +-
 sw/source/core/doc/docglbl.cxx                         |    2 -
 sw/source/core/doc/docnum.cxx                          |    8 ++--
 sw/source/core/doc/docredln.cxx                        |    4 +-
 sw/source/core/fields/flddat.cxx                       |    8 ++--
 sw/source/core/swg/swblocks.cxx                        |    5 ++
 sw/source/core/unocore/unofield.cxx                    |    5 +-
 sw/source/filter/basflt/shellio.cxx                    |   12 ++++--
 sw/source/filter/html/htmlfld.cxx                      |    4 +-
 sw/source/filter/html/swhtml.cxx                       |    2 -
 sw/source/filter/inc/fltshell.hxx                      |    4 +-
 sw/source/filter/ww8/wrtw8sty.cxx                      |    7 +++
 sw/source/filter/xml/XMLRedlineImportHelper.cxx        |    2 -
 sw/source/ui/docvw/SidebarWin.cxx                      |    5 +-
 sw/source/ui/docvw/srcedtw.cxx                         |    6 +--
 sw/source/ui/fldui/fldmgr.cxx                          |    6 +--
 sw/source/ui/inc/gloslst.hxx                           |    2 +
 tools/Executable_rscdep.mk                             |    4 +-
 tools/Library_tl.mk                                    |    5 +-
 tools/inc/tools/date.hxx                               |   15 +++++++
 tools/inc/tools/datetime.hxx                           |   14 ++++++-
 tools/inc/tools/time.hxx                               |   15 +++++++
 tools/source/datetime/tdate.cxx                        |    2 -
 tools/source/datetime/ttime.cxx                        |    2 -
 tools/source/inet/inetmsg.cxx                          |    6 +--
 unotools/source/ucbhelper/ucblockbytes.cxx             |    3 +
 uui/source/iahndl-ssl.cxx                              |    4 +-
 vbahelper/source/vbahelper/vbaapplicationbase.cxx      |    4 +-
 vcl/source/control/field2.cxx                          |   18 +++++----
 xmloff/source/forms/elementexport.cxx                  |    2 -
 xmloff/source/forms/propertyexport.cxx                 |    4 +-
 xmloff/source/text/txtlists.cxx                        |    4 +-
 xmlsecurity/source/dialogs/certificateviewer.cxx       |    6 +--
 xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx |    2 -
 116 files changed, 351 insertions(+), 232 deletions(-)

New commits:
commit 86adb5cacb4fe3e7fb869299447da5876f0da30d
Author: Eike Rathke <erack at redhat.com>
Date:   Thu Dec 1 21:03:42 2011 +0100

    get rid of class Date and Time default ctor with system time penalty

diff --git a/automation/source/server/profiler.cxx b/automation/source/server/profiler.cxx
index a7dc2eb..52d0a8f 100644
--- a/automation/source/server/profiler.cxx
+++ b/automation/source/server/profiler.cxx
@@ -150,7 +150,7 @@ void TTProfiler::EndProfileInterval()
 
 void TTProfiler::GetProfileSnapshot( ProfileSnapshot *pProfileSnapshot )
 {
-    pProfileSnapshot->aTime = Time();
+    pProfileSnapshot->aTime = Time( Time::SYSTEM );
     pProfileSnapshot->nProcessTicks = Time::GetProcessTicks();
     pProfileSnapshot->nSystemTicks = Time::GetSystemTicks();
 }
diff --git a/automation/source/server/profiler.hxx b/automation/source/server/profiler.hxx
index cf04699..1aef4fb 100644
--- a/automation/source/server/profiler.hxx
+++ b/automation/source/server/profiler.hxx
@@ -50,6 +50,8 @@ struct ProfileSnapshot
     SysdepProfileSnapshot *pSysdepProfileSnapshot;
     sal_uLong nProcessTicks;
     sal_uLong nSystemTicks;
+
+    ProfileSnapshot() : aTime( Time::EMPTY ) {}
 };
 
 
diff --git a/automation/source/server/sta_list.cxx b/automation/source/server/sta_list.cxx
index 3603163..2579929 100644
--- a/automation/source/server/sta_list.cxx
+++ b/automation/source/server/sta_list.cxx
@@ -990,7 +990,7 @@ sal_Bool StatementList::CheckWindowWait()
 {
     static Time StartTime = Time(0L);   // cancel if window doesn't want to close at all
     if ( StartTime == Time(0L) )
-        StartTime = Time();
+        StartTime = Time( Time::SYSTEM );
 
     if ( pWindowWaitPointer )
     {
@@ -1005,7 +1005,7 @@ sal_Bool StatementList::CheckWindowWait()
 #endif
 
 
-            if ( StartTime + Time(0,0,10) < Time() )
+            if ( StartTime + Time(0,0,10) < Time( Time::SYSTEM ) )
             {
 #if OSL_DEBUG_LEVEL > 1
                 m_pDbgWin->AddText( "Close timed out. Going on!! " );
diff --git a/automation/source/server/statemnt.cxx b/automation/source/server/statemnt.cxx
index 15c2c53..8eb6ba3 100644
--- a/automation/source/server/statemnt.cxx
+++ b/automation/source/server/statemnt.cxx
@@ -1202,6 +1202,7 @@ DisplayHidWin::DisplayHidWin()
 , pShow2( NULL )
 , pLastMouseMoveWin( NULL )
 , bOldShift( 0 )
+, aLatest( Time::SYSTEM )
 , nShiftCount( 0 )
 {
     SetOutStyle( TOOLBOX_STYLE_HANDPOINTER | TOOLBOX_STYLE_FLAT );
@@ -1332,17 +1333,17 @@ long DisplayHidWin::VCLEventHook( NotifyEvent& rEvt )
 
         if ( (  pMEvt->IsShift() && !bOldShift ) )    // Shift pressed
         {
-            if ( aLatest < Time() )
+            if ( aLatest < Time( Time::SYSTEM ) )
             {
                 nShiftCount = 0;
-                aLatest = Time()+Time( 0, 0, 0, 50 );
+                aLatest = Time( Time::SYSTEM )+Time( 0, 0, 0, 50 );
             }
             nShiftCount++;
         }
         if ( ( !pMEvt->IsShift() &&  bOldShift ) )    // Shift released
         {
             nShiftCount++;
-            if ( nShiftCount == 4 && aLatest > Time() )
+            if ( nShiftCount == 4 && aLatest > Time( Time::SYSTEM ) )
             {
                 bIsPermanentDraging = sal_False;
                 SetDraging( sal_False );
@@ -2246,10 +2247,10 @@ sal_Bool StatementCommand::Execute()
         case RC_AppDelay:
             if ( !bBool1 )
             {
-                nLNr1_and_Pointer.nLNr1 = Time().GetTime() + nNr1/10;
+                nLNr1_and_Pointer.nLNr1 = Time( Time::SYSTEM ).GetTime() + nNr1/10;
                 bBool1 = sal_True;
             }
-            if ( Time().GetTime() < sal_Int32(nLNr1_and_Pointer.nLNr1) )
+            if ( Time( Time::SYSTEM ).GetTime() < sal_Int32(nLNr1_and_Pointer.nLNr1) )
                 return sal_False;
             break;
         case RC_DisplayHid:
@@ -2455,10 +2456,10 @@ sal_Bool StatementCommand::Execute()
                 // E.g.: Floating toolbars on a Task which was hidden by another Task before
                 if ( !bBool2 )
                 {
-                    nLNr1_and_Pointer.nLNr1 = Time().GetTime() + 100; // 100 = 1 Second
+                    nLNr1_and_Pointer.nLNr1 = Time( Time::SYSTEM ).GetTime() + 100; // 100 = 1 Second
                     bBool2 = sal_True;
                 }
-                if ( Time().GetTime() < sal_Int32(nLNr1_and_Pointer.nLNr1) )
+                if ( Time( Time::SYSTEM ).GetTime() < sal_Int32(nLNr1_and_Pointer.nLNr1) )
                     return sal_False;
                 else
                     pRet->GenReturn ( RET_Value, nMethodId, aString1);
@@ -2470,7 +2471,7 @@ sal_Bool StatementCommand::Execute()
                     nNr1 = 1000;    // defaults to 1000 = 1 Sec.
                 if ( !bBool1 )
                 {
-                    nLNr1_and_Pointer.nLNr1 = Time().GetTime() + nNr1/10;
+                    nLNr1_and_Pointer.nLNr1 = Time( Time::SYSTEM ).GetTime() + nNr1/10;
                     bBool1 = sal_True;
                 }
 
@@ -2478,7 +2479,7 @@ sal_Bool StatementCommand::Execute()
                     pRet->GenReturn ( RET_Value, nMethodId, comm_UINT16(CONST_WSFinished) );
                 else
                 {
-                    if ( Time().GetTime() < sal_Int32(nLNr1_and_Pointer.nLNr1) )
+                    if ( Time( Time::SYSTEM ).GetTime() < sal_Int32(nLNr1_and_Pointer.nLNr1) )
                         return sal_False;
                     pRet->GenReturn ( RET_Value, nMethodId, comm_UINT16(CONST_WSTimeout) );
                 }
@@ -4051,7 +4052,7 @@ sal_Bool StatementControl::HandleCommonMethods( Window *pControl )
                 pDlg->SetText(UniString("Schlie�en", RTL_TEXTENCODING_ISO_8859_1));
                 pDlg->Show();
                 pMyEd->Show();
-                sal_uLong nTime = Time().GetTime();
+                sal_uLong nTime = Time( Time::SYSTEM ).GetTime();
 
                 while (pDlg->IsVisible())
                 {
@@ -4060,9 +4061,10 @@ sal_Bool StatementControl::HandleCommonMethods( Window *pControl )
                         SafeReschedule();
                     Point Pos = pControl->GetPointerPosPixel();
                     Size Siz=pControl->GetOutputSizePixel();
-                    if ( Time().GetTime() - nTime > 10 )
+                    Time aSysTime( Time::SYSTEM );
+                    if ( aSysTime.GetTime() - nTime > 10 )
                     {
-                        nTime = Time().GetTime();
+                        nTime = aSysTime.GetTime();
                         pMyEd->SetText(UniString::CreateFromInt32(Pos.X()*100/Siz.Width()).AppendAscii("%x").Append( UniString::CreateFromInt32(Pos.Y()*100/Siz.Height()) ).Append('%'));
                     }
                 }
@@ -4391,7 +4393,7 @@ sal_Bool StatementControl::Execute()
     {
         case M_Exists:
         case M_NotExists:
-            Time aT;
+            Time aT( Time::SYSTEM );
             sal_uInt16 aSeconds = aT.GetMin()*60+aT.GetSec();
             if ( !bBool2 )          // has been set to sal_False in the constructor
             {
@@ -5148,8 +5150,8 @@ sal_Bool StatementControl::Execute()
                                         // Wait for the window to open.
                                         StatementList::bExecuting = sal_True;
                                         {
-                                            Time aDelay;
-                                            while ( !pWin && ( (pWin = GetPopupFloatingWin()) == NULL ) && ( Time() - aDelay ).GetSec() < 15 )
+                                            Time aDelay( Time::SYSTEM );
+                                            while ( !pWin && ( (pWin = GetPopupFloatingWin()) == NULL ) && ( Time( Time::SYSTEM ) - aDelay ).GetSec() < 15 )
                                                 SafeReschedule();
                                         }
                                         StatementList::bExecuting = sal_False;
diff --git a/automation/source/simplecm/simplecm.cxx b/automation/source/simplecm/simplecm.cxx
index bd1e83a..b0d9ee2 100644
--- a/automation/source/simplecm/simplecm.cxx
+++ b/automation/source/simplecm/simplecm.cxx
@@ -53,7 +53,9 @@ CommunicationLink::CommunicationLink( CommunicationManager *pMan )
 , pServiceData(NULL)
 , nServiceProtocol( 0 )
 , bIsInsideCallback( sal_False )
+, aStart( DateTime::EMPTY )
 , nTotalBytes( 0 )
+, aLastAccess( DateTime::EMPTY )
 , maApplication("Undefined")
 #if OSL_DEBUG_LEVEL > 1
 , bFlag( sal_False )
@@ -123,7 +125,7 @@ sal_Bool CommunicationLink::DoTransferDataStream( SvStream *pDataStream, CMProto
 
 sal_Bool CommunicationLink::TransferDataStream( SvStream *pDataStream, CMProtocol nProtocol )
 {
-    aLastAccess = DateTime();
+    aLastAccess = DateTime( DateTime::SYSTEM );
     nTotalBytes += pDataStream->Seek( STREAM_SEEK_TO_END );
     return DoTransferDataStream( pDataStream, nProtocol );
 }
@@ -375,7 +377,7 @@ ByteString CommunicationManager::GetMyName( CM_NameType )
 void CommunicationManager::CallConnectionOpened( CommunicationLink* pCL )
 {
     pCL->StartCallback();       // This should already have been called.
-    pCL->aStart = DateTime();
+    pCL->aStart = DateTime( DateTime::SYSTEM );
     pCL->aLastAccess = pCL->aStart;
     bIsCommunicationRunning = sal_True;
     pCL->SetApplication( GetApplication() );
@@ -392,7 +394,7 @@ void CommunicationManager::CallConnectionOpened( CommunicationLink* pCL )
 void CommunicationManager::CallConnectionClosed( CommunicationLink* pCL )
 {
     pCL->StartCallback();       // This should already have been called.
-    pCL->aLastAccess = DateTime();
+    pCL->aLastAccess = DateTime( DateTime::SYSTEM );
 
     INFO_MSG( CByteString("C-:").Append( pCL->GetCommunicationPartner( CM_FQDN ) ),
         CByteString("Connection broken: ").Append( pCL->GetCommunicationPartner( CM_FQDN ) ),
@@ -409,7 +411,7 @@ void CommunicationManager::CallConnectionClosed( CommunicationLink* pCL )
 void CommunicationManager::CallDataReceived( CommunicationLink* pCL )
 {
     pCL->StartCallback();       // Should have already been called
-    pCL->aLastAccess = DateTime();
+    pCL->aLastAccess = DateTime( DateTime::SYSTEM );
     CommunicationLinkRef rHold(pCL);    // Keep the pointer for a bit.
 
     // should be impossible but happens for mysterious reasons
diff --git a/automation/source/testtool/objtest.cxx b/automation/source/testtool/objtest.cxx
index af677dc..ff8745d 100644
--- a/automation/source/testtool/objtest.cxx
+++ b/automation/source/testtool/objtest.cxx
@@ -1063,12 +1063,12 @@ void TestToolObj::WaitForAnswer ()
     }
     else
     {
-        Time Ende;
+        Time Ende( Time::SYSTEM );
 
         Ende += pImpl->aServerTimeout;
         SvStream *pTemp = NULL;
 
-        while ( !bReturnOK && Ende > Time() )
+        while ( !bReturnOK && Ende > Time( Time::SYSTEM ) )
         {
             if ( pTemp )
             {
diff --git a/automation/source/testtool/objtest.hxx b/automation/source/testtool/objtest.hxx
index afcb6b9..3c7ab88 100644
--- a/automation/source/testtool/objtest.hxx
+++ b/automation/source/testtool/objtest.hxx
@@ -291,6 +291,8 @@ public:
     Environment *pChildEnv;     // Environment Variables for child Process
 
     HttpRequest *pHttpRequest;  // used for sending HTTP requests
+
+    ImplTestToolObj() : aServerTimeout( Time::EMPTY ) {}
 };
 
 
diff --git a/automation/source/testtool/tcommuni.cxx b/automation/source/testtool/tcommuni.cxx
index 2e0d7b8..44dc5f2 100644
--- a/automation/source/testtool/tcommuni.cxx
+++ b/automation/source/testtool/tcommuni.cxx
@@ -42,6 +42,7 @@
 
 CommunicationManagerClientViaSocketTT::CommunicationManagerClientViaSocketTT()
 : CommunicationManagerClientViaSocket( sal_True )
+, aFirstRetryCall( Time::EMPTY )
 , aAppPath()
 , aAppParams()
 , pProcess( NULL )
@@ -82,7 +83,7 @@ sal_Bool CommunicationManagerClientViaSocketTT::RetryConnect()
 
             if ( bSucc )
             {
-                aFirstRetryCall = Time() + Time( 0, 1 );
+                aFirstRetryCall = Time( Time::SYSTEM ) + Time( 0, 1 );
                 for ( int i = 10 ; i-- ; )
                     GetpApp()->Reschedule();
             }
@@ -92,7 +93,7 @@ sal_Bool CommunicationManagerClientViaSocketTT::RetryConnect()
     }
     else
     {
-        if ( aFirstRetryCall > Time() )
+        if ( aFirstRetryCall > Time( Time::SYSTEM ) )
         {
             Timer aWait;
             aWait.SetTimeout( 500 );
diff --git a/basic/source/app/msgedit.cxx b/basic/source/app/msgedit.cxx
index 06e68bf..cda2c4f 100644
--- a/basic/source/app/msgedit.cxx
+++ b/basic/source/app/msgedit.cxx
@@ -136,8 +136,8 @@ void MsgEdit::AddAnyMsg( TTLogMsg *LogMsg )
                     {
                         SvtSysLocale aLocale;
                         LogMsg->aDebugData.aMsg = GEN_RES_STR2( S_PROG_START,
-                                aLocale.GetLocaleData().getDate(Date()),
-                                aLocale.GetLocaleData().getTime(Time()) );
+                                aLocale.GetLocaleData().getDate(Date( Date::SYSTEM)),
+                                aLocale.GetLocaleData().getTime(Time( Time::SYSTEM)) );
                         aUILogMsg = pBasicFrame->GenRealString( LogMsg->aDebugData.aMsg );
                     }
                     AddRun( aUILogMsg, LogMsg->aDebugData ); break;
diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx
index 251454b..e3d5d48 100644
--- a/basic/source/runtime/methods.cxx
+++ b/basic/source/runtime/methods.cxx
@@ -2151,8 +2151,8 @@ RTLFUNC(Second)
 
 double Now_Impl()
 {
-    Date aDate;
-    Time aTime;
+    Date aDate( Date::SYSTEM );
+    Time aTime( Time::SYSTEM );
     double aSerial = (double)GetDayDiff( aDate );
     long nSeconds = aTime.GetHour();
     nSeconds *= 3600;
@@ -2180,7 +2180,7 @@ RTLFUNC(Time)
 
     if ( !bWrite )
     {
-        Time aTime;
+        Time aTime( Time::SYSTEM );
         SbxVariable* pMeth = rPar.Get( 0 );
         String aRes;
         if( pMeth->IsFixed() )
@@ -2232,7 +2232,7 @@ RTLFUNC(Timer)
     (void)pBasic;
     (void)bWrite;
 
-    Time aTime;
+    Time aTime( Time::SYSTEM );
     long nSeconds = aTime.GetHour();
     nSeconds *= 3600;
     nSeconds += aTime.GetMin() * 60;
@@ -2248,7 +2248,7 @@ RTLFUNC(Date)
 
     if ( !bWrite )
     {
-        Date aToday;
+        Date aToday( Date::SYSTEM );
         double nDays = (double)GetDayDiff( aToday );
         SbxVariable* pMeth = rPar.Get( 0 );
         if( pMeth->IsString() )
@@ -2922,8 +2922,8 @@ RTLFUNC(FileDateTime)
     else
     {
         String aPath = rPar.Get(1)->GetString();
-        Time aTime;
-        Date aDate;
+        Time aTime( Time::EMPTY );
+        Date aDate( Date::EMPTY );
         if( hasUno() )
         {
             com::sun::star::uno::Reference< XSimpleFileAccess3 > xSFI = getFileAccess();
diff --git a/chart2/source/view/axes/DateScaling.cxx b/chart2/source/view/axes/DateScaling.cxx
index 5785092..cb532ab 100644
--- a/chart2/source/view/axes/DateScaling.cxx
+++ b/chart2/source/view/axes/DateScaling.cxx
@@ -168,7 +168,7 @@ double SAL_CALL InverseDateScaling::doScaling( double value )
                     else
                         value -= 0.5;
                 }
-                Date aDate;
+                Date aDate( Date::EMPTY );
                 double fYear = ::rtl::math::approxFloor(value/lcl_fNumberOfMonths);
                 double fMonth = ::rtl::math::approxFloor(value-(fYear*lcl_fNumberOfMonths));
                 if( fMonth==0.0 )
diff --git a/chart2/source/view/main/ChartView.cxx b/chart2/source/view/main/ChartView.cxx
index 04c42cd..78a50e2 100644
--- a/chart2/source/view/main/ChartView.cxx
+++ b/chart2/source/view/main/ChartView.cxx
@@ -464,7 +464,7 @@ private:
 };
 
 AxisUsage::AxisUsage()
-    : aScaleAutomatism(AxisHelper::createDefaultScale(),Date())
+    : aScaleAutomatism(AxisHelper::createDefaultScale(),Date( Date::SYSTEM ))
 {
 }
 
diff --git a/connectivity/source/drivers/calc/CTable.cxx b/connectivity/source/drivers/calc/CTable.cxx
index 317b454..3448d49 100644
--- a/connectivity/source/drivers/calc/CTable.cxx
+++ b/connectivity/source/drivers/calc/CTable.cxx
@@ -551,6 +551,7 @@ OCalcTable::OCalcTable(sdbcx::OCollection* _pTables,OCalcConnection* _pConnectio
                 ,m_nDataCols(0)
                 ,m_nDataRows(0)
                 ,m_bHasHeaders(sal_False)
+                ,m_aNullDate(::Date::EMPTY)
 {
     RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "calc", "Ocke.Janssen at sun.com", "OCalcTable::OCalcTable" );
 }
diff --git a/connectivity/source/drivers/dbase/DTable.cxx b/connectivity/source/drivers/dbase/DTable.cxx
index cb1b2eb..8d6c467 100644
--- a/connectivity/source/drivers/dbase/DTable.cxx
+++ b/connectivity/source/drivers/dbase/DTable.cxx
@@ -1158,7 +1158,7 @@ sal_Bool ODbaseTable::CreateFile(const INetURLObject& aFile, sal_Bool& bCreateMe
 {
     RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "dbase", "Ocke.Janssen at sun.com", "ODbaseTable::CreateFile" );
     bCreateMemo = sal_False;
-    Date aDate;                                     // current date
+    Date aDate( Date::SYSTEM );                     // current date
 
     m_pFileStream = createStream_simpleError( aFile.GetMainURL(INetURLObject::NO_DECODE),STREAM_READWRITE | STREAM_SHARE_DENYWRITE | STREAM_TRUNC );
 
diff --git a/connectivity/source/drivers/file/FDateFunctions.cxx b/connectivity/source/drivers/file/FDateFunctions.cxx
index e8185d8..8bffd17 100644
--- a/connectivity/source/drivers/file/FDateFunctions.cxx
+++ b/connectivity/source/drivers/file/FDateFunctions.cxx
@@ -263,7 +263,7 @@ ORowSetValue OOp_CurDate::operate(const ::std::vector<ORowSetValue>& lhs) const
     if ( !lhs.empty() )
         return ORowSetValue();
 
-    Date aCurDate;
+    Date aCurDate( Date::SYSTEM );
     return ::com::sun::star::util::Date(aCurDate.GetDay(),aCurDate.GetMonth(),aCurDate.GetYear());
 }
 //------------------------------------------------------------------
@@ -272,7 +272,7 @@ ORowSetValue OOp_CurTime::operate(const ::std::vector<ORowSetValue>& lhs) const
     if ( !lhs.empty() )
         return ORowSetValue();
 
-    Time aCurTime;
+    Time aCurTime( Time::SYSTEM );
     return ::com::sun::star::util::Time(aCurTime.Get100Sec(),aCurTime.GetSec(),aCurTime.GetMin(),aCurTime.GetHour());
 }
 //------------------------------------------------------------------
@@ -281,7 +281,7 @@ ORowSetValue OOp_Now::operate(const ::std::vector<ORowSetValue>& lhs) const
     if ( !lhs.empty() )
         return ORowSetValue();
 
-    DateTime aCurTime;
+    DateTime aCurTime( DateTime::SYSTEM );
     return ::com::sun::star::util::DateTime(aCurTime.Get100Sec(),aCurTime.GetSec(),aCurTime.GetMin(),aCurTime.GetHour(),
                                             aCurTime.GetDay(),aCurTime.GetMonth(),aCurTime.GetYear());
 }
diff --git a/cui/source/dialogs/postdlg.cxx b/cui/source/dialogs/postdlg.cxx
index e16815c..ab5ed76 100644
--- a/cui/source/dialogs/postdlg.cxx
+++ b/cui/source/dialogs/postdlg.cxx
@@ -135,7 +135,7 @@ SvxPostItDialog::SvxPostItDialog( Window* pParent,
     else
     {
         LocaleDataWrapper aLocaleWrapper( ::comphelper::getProcessServiceFactory(), Application::GetSettings().GetLocale() );
-        aDateStr = aLocaleWrapper.getDate( Date() );
+        aDateStr = aLocaleWrapper.getDate( Date( Date::SYSTEM ) );
     }
 
     nWhich = rSet.GetPool()->GetWhich( SID_ATTR_POSTIT_TEXT );
@@ -218,8 +218,8 @@ IMPL_LINK_INLINE_END( SvxPostItDialog, NextHdl, Button *, EMPTYARG )
 
 IMPL_LINK( SvxPostItDialog, Stamp, Button *, EMPTYARG )
 {
-    Date aDate;
-    Time aTime;
+    Date aDate( Date::SYSTEM );
+    Time aTime( Time::SYSTEM );
     String aTmp( SvtUserOptions().GetID() );
     LocaleDataWrapper aLocaleWrapper( ::comphelper::getProcessServiceFactory(), Application::GetSettings().GetLocale() );
     String aStr( aEditED.GetText() );
@@ -251,7 +251,7 @@ IMPL_LINK( SvxPostItDialog, OKHdl, Button *, EMPTYARG )
     pOutSet = new SfxItemSet( rSet );
     pOutSet->Put( SvxPostItAuthorItem( SvtUserOptions().GetID(),
                                          rSet.GetPool()->GetWhich( SID_ATTR_POSTIT_AUTHOR ) ) );
-    pOutSet->Put( SvxPostItDateItem( aLocaleWrapper.getDate( Date() ),
+    pOutSet->Put( SvxPostItDateItem( aLocaleWrapper.getDate( Date( Date::SYSTEM ) ),
                                      rSet.GetPool()->GetWhich( SID_ATTR_POSTIT_DATE ) ) );
     pOutSet->Put( SvxPostItTextItem( aEditED.GetText(),
                                      rSet.GetPool()->GetWhich( SID_ATTR_POSTIT_TEXT ) ) );
diff --git a/cui/source/options/optupdt.cxx b/cui/source/options/optupdt.cxx
index ee87645..7e7bece 100644
--- a/cui/source/options/optupdt.cxx
+++ b/cui/source/options/optupdt.cxx
@@ -133,8 +133,8 @@ void SvxOnlineUpdateTabPage::UpdateLastCheckedText()
         TimeValue   lastCheckedTV;
         oslDateTime lastCheckedDT;
 
-        Date  aDate;
-        Time  aTime;
+        Date  aDate( Date::EMPTY );
+        Time  aTime( Time::EMPTY );
 
         lastCheckedTV.Seconds = (sal_uInt32) lastChecked;
         osl_getLocalTimeFromSystemTime( &lastCheckedTV, &lastCheckedTV );
diff --git a/editeng/source/items/flditem.cxx b/editeng/source/items/flditem.cxx
index eb8b8f5..56b2d71 100644
--- a/editeng/source/items/flditem.cxx
+++ b/editeng/source/items/flditem.cxx
@@ -202,7 +202,7 @@ SV_IMPL_PERSIST1( SvxDateField, SvxFieldData );
 
 SvxDateField::SvxDateField()
 {
-    nFixDate = Date().GetDate();
+    nFixDate = Date( Date::SYSTEM ).GetDate();
     eType = SVXDATETYPE_VAR;
     eFormat = SVXDATEFORMAT_STDSMALL;
 }
@@ -263,9 +263,11 @@ void SvxDateField::Save( SvPersistStream & rStm )
 
 String SvxDateField::GetFormatted( SvNumberFormatter& rFormatter, LanguageType eLang ) const
 {
-    Date aDate; // current date
+    Date aDate( Date::EMPTY );
     if ( eType == SVXDATETYPE_FIX )
         aDate.SetDate( nFixDate );
+    else
+        aDate = Date( Date::SYSTEM ); // current date
 
     return GetFormatted( aDate, eFormat, rFormatter, eLang );
 }
@@ -551,7 +553,7 @@ SV_IMPL_PERSIST1( SvxExtTimeField, SvxFieldData );
 
 SvxExtTimeField::SvxExtTimeField()
 {
-    nFixTime = Time().GetTime();
+    nFixTime = Time( Time::SYSTEM ).GetTime();
     eType = SVXTIMETYPE_VAR;
     eFormat = SVXTIMEFORMAT_STANDARD;
 }
@@ -612,9 +614,11 @@ void SvxExtTimeField::Save( SvPersistStream & rStm )
 
 String SvxExtTimeField::GetFormatted( SvNumberFormatter& rFormatter, LanguageType eLang ) const
 {
-    Time aTime; // current time
+    Time aTime( Time::EMPTY );
     if ( eType == SVXTIMETYPE_FIX )
         aTime.SetTime( nFixTime );
+    else
+        aTime = Time( Time::SYSTEM ); // current time
     return GetFormatted( aTime, eFormat, rFormatter, eLang );
 }
 
diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx
index 1040ba8..f044d6a 100644
--- a/editeng/source/misc/svxacorr.cxx
+++ b/editeng/source/misc/svxacorr.cxx
@@ -1645,7 +1645,7 @@ sal_Bool SvxAutoCorrect::CreateLanguageFile( LanguageType eLang, sal_Bool bNewFi
            sShareDirFile( sUserDirFile );
     SvxAutoCorrectLanguageListsPtr pLists = 0;
 
-    Time nMinTime( 0, 2 ), nAktTime, nLastCheckTime;
+    Time nMinTime( 0, 2 ), nAktTime( Time::SYSTEM ), nLastCheckTime( Time::EMPTY );
     sal_uLong nFndPos;
     if( TABLE_ENTRY_NOTFOUND !=
                     pLastFileTable->SearchKey( sal_uLong( eLang ), &nFndPos ) &&
@@ -1986,6 +1986,9 @@ SvxAutoCorrectLanguageLists::SvxAutoCorrectLanguageLists(
                 LanguageType eLang)
 :   sShareAutoCorrFile( rShareAutoCorrectFile ),
     sUserAutoCorrFile( rUserAutoCorrectFile ),
+    aModifiedDate( Date::EMPTY ),
+    aModifiedTime( Time::EMPTY ),
+    aLastCheckTime( Time::EMPTY ),
     eLanguage(eLang),
     pCplStt_ExcptLst( 0 ),
     pWrdStt_ExcptLst( 0 ),
@@ -2008,11 +2011,11 @@ sal_Bool SvxAutoCorrectLanguageLists::IsFileChanged_Imp()
     sal_Bool bRet = sal_False;
 
     Time nMinTime( 0, 2 );
-    Time nAktTime;
+    Time nAktTime( Time::SYSTEM );
     if( aLastCheckTime > nAktTime ||                    // overflow?
         ( nAktTime -= aLastCheckTime ) > nMinTime )     // min time past
     {
-        Date aTstDate; Time aTstTime;
+        Date aTstDate( Date::EMPTY ); Time aTstTime( Time::EMPTY );
         if( FStatHelper::GetModifiedDateTimeOfFile( sShareAutoCorrFile,
                                             &aTstDate, &aTstTime ) &&
             ( aModifiedDate != aTstDate || aModifiedTime != aTstTime ))
@@ -2027,7 +2030,7 @@ sal_Bool SvxAutoCorrectLanguageLists::IsFileChanged_Imp()
                 delete pAutocorr_List, pAutocorr_List = 0;
             nFlags &= ~(CplSttLstLoad | WrdSttLstLoad | ChgWordLstLoad );
         }
-        aLastCheckTime = Time();
+        aLastCheckTime = Time( Time::SYSTEM );
     }
     return bRet;
 }
@@ -2114,7 +2117,7 @@ void SvxAutoCorrectLanguageLists::LoadXMLExceptList_Imp(
         // Set time stamp
         FStatHelper::GetModifiedDateTimeOfFile( sShareAutoCorrFile,
                                         &aModifiedDate, &aModifiedTime );
-        aLastCheckTime = Time();
+        aLastCheckTime = Time( Time::SYSTEM );
     }
 
 }
@@ -2230,7 +2233,7 @@ SvxAutocorrWordList* SvxAutoCorrectLanguageLists::LoadAutocorrWordList()
     // Set time stamp
     FStatHelper::GetModifiedDateTimeOfFile( sShareAutoCorrFile,
                                     &aModifiedDate, &aModifiedTime );
-    aLastCheckTime = Time();
+    aLastCheckTime = Time( Time::SYSTEM );
 
     return pAutocorr_List;
 }
@@ -2276,7 +2279,7 @@ sal_Bool SvxAutoCorrectLanguageLists::AddToCplSttExceptList(const String& rNew)
         // Set time stamp
         FStatHelper::GetModifiedDateTimeOfFile( sUserAutoCorrFile,
                                             &aModifiedDate, &aModifiedTime );
-        aLastCheckTime = Time();
+        aLastCheckTime = Time( Time::SYSTEM );
     }
     else
         delete pNew, pNew = 0;
@@ -2298,7 +2301,7 @@ sal_Bool SvxAutoCorrectLanguageLists::AddToWrdSttExceptList(const String& rNew)
         // Set time stamp
         FStatHelper::GetModifiedDateTimeOfFile( sUserAutoCorrFile,
                                             &aModifiedDate, &aModifiedTime );
-        aLastCheckTime = Time();
+        aLastCheckTime = Time( Time::SYSTEM );
     }
     else
         delete pNew, pNew = 0;
@@ -2327,7 +2330,7 @@ void SvxAutoCorrectLanguageLists::SaveCplSttExceptList()
     // Set time stamp
     FStatHelper::GetModifiedDateTimeOfFile( sUserAutoCorrFile,
                                             &aModifiedDate, &aModifiedTime );
-    aLastCheckTime = Time();
+    aLastCheckTime = Time( Time::SYSTEM );
 }
 
 void SvxAutoCorrectLanguageLists::SetCplSttExceptList( SvStringsISortDtor* pList )
@@ -2364,7 +2367,7 @@ void SvxAutoCorrectLanguageLists::SaveWrdSttExceptList()
     // Set time stamp
     FStatHelper::GetModifiedDateTimeOfFile( sUserAutoCorrFile,
                                             &aModifiedDate, &aModifiedTime );
-    aLastCheckTime = Time();
+    aLastCheckTime = Time( Time::SYSTEM );
 }
 
 void SvxAutoCorrectLanguageLists::SetWrdSttExceptList( SvStringsISortDtor* pList )
diff --git a/editeng/source/uno/unofield.cxx b/editeng/source/uno/unofield.cxx
index 80b3aa6..1f3cee7 100644
--- a/editeng/source/uno/unofield.cxx
+++ b/editeng/source/uno/unofield.cxx
@@ -339,7 +339,7 @@ SvxUnoTextField::SvxUnoTextField( uno::Reference< text::XTextRange > xAnchor, co
                     sal_Bool bFixed = ((SvxDateField*)pData)->GetType() == SVXDATETYPE_FIX;
                     mpImpl->maDateTime = getDate( bFixed ?
                                             ((SvxDateField*)pData)->GetFixDate() :
-                                            Date().GetDate() );
+                                            Date( Date::SYSTEM ).GetDate() );
                     mpImpl->mnInt32 = ((SvxDateField*)pData)->GetFormat();
                     mpImpl->mbBoolean1 = bFixed;
                 }
diff --git a/extensions/source/propctrlr/standardcontrol.cxx b/extensions/source/propctrlr/standardcontrol.cxx
index bb8e8b2..2b740ac 100644
--- a/extensions/source/propctrlr/standardcontrol.cxx
+++ b/extensions/source/propctrlr/standardcontrol.cxx
@@ -294,7 +294,7 @@ namespace pcr
             util::DateTime aUNODateTime;
             OSL_VERIFY( _rValue >>= aUNODateTime );
 
-            ::DateTime aDateTime;
+            ::DateTime aDateTime( ::DateTime::EMPTY );
             ::utl::typeConvert( aUNODateTime, aDateTime );
 
             double nValue = aDateTime - ::DateTime( *getTypedControlWindow()->GetFormatter()->GetNullDate() );
diff --git a/extensions/source/propctrlr/usercontrol.cxx b/extensions/source/propctrlr/usercontrol.cxx
index d039887..84108c6 100644
--- a/extensions/source/propctrlr/usercontrol.cxx
+++ b/extensions/source/propctrlr/usercontrol.cxx
@@ -134,7 +134,7 @@ namespace pcr
         {
             case NUMBERFORMAT_DATE:
                 {
-                    Date aCurrentDate;
+                    Date aCurrentDate( Date::SYSTEM );
                     static ::com::sun::star::util::Date STANDARD_DB_DATE(30,12,1899);
                     nValue = ::dbtools::DBTypeConversion::toDouble(::dbtools::DBTypeConversion::toDate(static_cast<sal_Int32>(aCurrentDate.GetDate())),STANDARD_DB_DATE);
                 }
@@ -142,7 +142,7 @@ namespace pcr
             case NUMBERFORMAT_TIME:
             case NUMBERFORMAT_DATETIME:
                 {
-                    Time aCurrentTime;
+                    Time aCurrentTime( Time::SYSTEM );
                     nValue = ::dbtools::DBTypeConversion::toDouble(::dbtools::DBTypeConversion::toTime(aCurrentTime.GetTime()));
                 }
                 break;
diff --git a/filter/source/msfilter/svdfppt.cxx b/filter/source/msfilter/svdfppt.cxx
index 430ced0..0cd5766 100644
--- a/filter/source/msfilter/svdfppt.cxx
+++ b/filter/source/msfilter/svdfppt.cxx
@@ -6285,10 +6285,10 @@ void PPTFieldEntry::SetDateTime( sal_uInt32 nVal )
     SvxTimeFormat eTimeFormat;
     GetDateTime( nVal, eDateFormat, eTimeFormat );
     if ( eDateFormat != SVXDATEFORMAT_APPDEFAULT )
-        pField1 = new SvxFieldItem( SvxDateField( Date(), SVXDATETYPE_VAR, eDateFormat ), EE_FEATURE_FIELD );
+        pField1 = new SvxFieldItem( SvxDateField( Date( Date::SYSTEM ), SVXDATETYPE_VAR, eDateFormat ), EE_FEATURE_FIELD );
     if ( eTimeFormat != SVXTIMEFORMAT_APPDEFAULT )
     {
-        SvxFieldItem* pFieldItem = new SvxFieldItem( SvxExtTimeField( Time(), SVXTIMETYPE_VAR, eTimeFormat ), EE_FEATURE_FIELD );
+        SvxFieldItem* pFieldItem = new SvxFieldItem( SvxExtTimeField( Time( Time::SYSTEM ), SVXTIMETYPE_VAR, eTimeFormat ), EE_FEATURE_FIELD );
         if ( pField1 )
             pField2 = pFieldItem;
         else
@@ -6680,7 +6680,7 @@ PPTTextObj::PPTTextObj( SvStream& rIn, SdrPowerPointImport& rSdrPowerPointImport
                                                     if ( pEntry->pString == NULL )
                                                     {
                                                         // Handle as previously
-                                                        pEntry->pField1 = new SvxFieldItem( SvxDateField( Date(), SVXDATETYPE_FIX ), EE_FEATURE_FIELD );
+                                                        pEntry->pField1 = new SvxFieldItem( SvxDateField( Date( Date::SYSTEM ), SVXDATETYPE_FIX ), EE_FEATURE_FIELD );
                                                     }
                                                 }
                                             }
diff --git a/filter/source/xsltdialog/xmlfileview.cxx b/filter/source/xsltdialog/xmlfileview.cxx
index 90f4699..206af57 100644
--- a/filter/source/xsltdialog/xmlfileview.cxx
+++ b/filter/source/xsltdialog/xmlfileview.cxx
@@ -866,7 +866,7 @@ void XMLFileWindow::ImpDoHighlight( const String& rSource, sal_uInt16 nLineOff )
 
 IMPL_LINK( XMLFileWindow, SyntaxTimerHdl, Timer *, pTimer )
 {
-    Time aSyntaxCheckStart;
+    Time aSyntaxCheckStart( Time::SYSTEM );
     DBG_ASSERT( pTextView, "Noch keine View, aber Syntax-Highlight ?!" );
     pTextEngine->SetUpdateMode( sal_False );
 
@@ -891,7 +891,7 @@ IMPL_LINK( XMLFileWindow, SyntaxTimerHdl, Timer *, pTimer )
                 nCount++;
                 if(!aSyntaxLineTable.Count())
                     break;
-                if((Time().GetTime() - aSyntaxCheckStart.GetTime()) > MAX_HIGHLIGHTTIME )
+                if((Time( Time::SYSTEM ).GetTime() - aSyntaxCheckStart.GetTime()) > MAX_HIGHLIGHTTIME )
                 {
                     pTimer->SetTimeout( 2 * SYNTAX_HIGHLIGHT_TIMEOUT );
                     break;
@@ -909,7 +909,7 @@ IMPL_LINK( XMLFileWindow, SyntaxTimerHdl, Timer *, pTimer )
         p = aSyntaxLineTable.Next();
         aSyntaxLineTable.Remove(nC);
         nCount ++;
-        if(Time().GetTime() - aSyntaxCheckStart.GetTime() > MAX_HIGHLIGHTTIME)
+        if(Time( Time::SYSTEM ).GetTime() - aSyntaxCheckStart.GetTime() > MAX_HIGHLIGHTTIME)
         {
             pTimer->SetTimeout( 2 * SYNTAX_HIGHLIGHT_TIMEOUT );
             break;
diff --git a/forms/source/xforms/xpathlib/xpathlib.cxx b/forms/source/xforms/xpathlib/xpathlib.cxx
index 45bde11..5168fd7 100644
--- a/forms/source/xforms/xpathlib/xpathlib.cxx
+++ b/forms/source/xforms/xpathlib/xpathlib.cxx
@@ -287,7 +287,7 @@ void xforms_nowFunction(xmlXPathParserContextPtr ctxt, int /*nargs*/)
     be omitted or, if present, the time zone must be Coordinated Universal Time (UTC)
     indicated by a "Z".
     */
-    DateTime aDateTime;
+    DateTime aDateTime( DateTime::SYSTEM );
     ::rtl::OString aDateTimeString = makeDateTimeString(aDateTime);
     xmlChar *pString = static_cast<xmlChar*>(xmlMalloc(aDateTimeString.getLength()+1));
     strncpy((char*)pString, (char*)aDateTimeString.getStr(), aDateTimeString.getLength());
@@ -347,7 +347,7 @@ void xforms_daysFromDateFunction(xmlXPathParserContextPtr ctxt, int nargs)
     if (xmlXPathCheckError(ctxt)) XP_ERROR(XPATH_INVALID_TYPE);
     ::rtl::OUString aString((char*)pString, strlen((char*)pString), RTL_TEXTENCODING_UTF8);
 
-    DateTime aDateTime;
+    DateTime aDateTime( DateTime::EMPTY );
     if (parseDateTime(aString, aDateTime))
     {
         Date aReferenceDate(1, 1, 1970);
@@ -370,7 +370,7 @@ void xforms_secondsFromDateTimeFunction(xmlXPathParserContextPtr ctxt, int nargs
     if (xmlXPathCheckError(ctxt)) XP_ERROR(XPATH_INVALID_TYPE);
     ::rtl::OUString aString((char*)pString, strlen((char*)pString), RTL_TEXTENCODING_UTF8);
 
-    DateTime aDateTime;
+    DateTime aDateTime( DateTime::EMPTY );
 
     if (parseDateTime(aString, aDateTime))
     {
diff --git a/framework/source/jobs/jobdata.cxx b/framework/source/jobs/jobdata.cxx
index 8469dba..f65c3d9 100644
--- a/framework/source/jobs/jobdata.cxx
+++ b/framework/source/jobs/jobdata.cxx
@@ -562,7 +562,7 @@ void JobData::disableJob()
     {
         // Convert and write the user timestamp to the configuration.
         css::uno::Any aValue;
-        aValue <<= Converter::convert_DateTime2ISO8601(DateTime());
+        aValue <<= Converter::convert_DateTime2ISO8601(DateTime( DateTime::SYSTEM));
         xPropSet->setPropertyValue(::rtl::OUString::createFromAscii(EVENTCFG_PROP_USERTIME), aValue);
     }
 
diff --git a/framework/source/services/license.cxx b/framework/source/services/license.cxx
index 221cd59..73d1e6d 100644
--- a/framework/source/services/license.cxx
+++ b/framework/source/services/license.cxx
@@ -239,7 +239,7 @@ static sal_Bool _parseDateTime(const ::rtl::OUString& aString, DateTime& aDateTi
 static ::rtl::OUString _getCurrentDateString()
 {
     ::rtl::OUString aString;
-    return _makeDateTimeString(DateTime());
+    return _makeDateTimeString(DateTime( DateTime::SYSTEM));
 }
 
 // execution of license check...
@@ -328,7 +328,7 @@ css::uno::Any SAL_CALL License::execute(const css::uno::Sequence< css::beans::Na
 
             // compare dates
             DateTime aLicenseDateTime = _oslDateTimeToDateTime(aDateTimeVal);
-            DateTime aAcceptDateTime;
+            DateTime aAcceptDateTime( DateTime::EMPTY);
             if (!_parseDateTime(aAcceptDate, aAcceptDateTime))
                 return makeAny(sal_False);
 
diff --git a/l10ntools/source/export2.cxx b/l10ntools/source/export2.cxx
index 2acbede..fec515f 100644
--- a/l10ntools/source/export2.cxx
+++ b/l10ntools/source/export2.cxx
@@ -382,9 +382,9 @@ ByteString Export::GetTimeStamp()
 {
 //  return "xx.xx.xx";
     char buf[20];
-    Time aTime;
+    Time aTime( Time::SYSTEM );
 
-    snprintf(buf, sizeof(buf), "%8d %02d:%02d:%02d", int(Date().GetDate()),
+    snprintf(buf, sizeof(buf), "%8d %02d:%02d:%02d", int(Date( Date::SYSTEM).GetDate()),
         int(aTime.GetHour()), int(aTime.GetMin()), int(aTime.GetSec()));
     return ByteString(buf);
 }
diff --git a/padmin/source/padialog.cxx b/padmin/source/padialog.cxx
index a3a46be..51e996e 100644
--- a/padmin/source/padialog.cxx
+++ b/padmin/source/padialog.cxx
@@ -491,9 +491,9 @@ void SpaPrinterController::printPage( int ) const
     aPrintText.appendAscii( "\n: " );
     aPrintText.append( aInfo.m_aComment );
     aPrintText.appendAscii( "\n: " );
-    aPrintText.append( rLocaleWrapper.getDate( Date() ) );
+    aPrintText.append( rLocaleWrapper.getDate( Date( Date::SYSTEM ) ) );
     aPrintText.appendAscii( "\n: " );
-    aPrintText.append( rLocaleWrapper.getTime( Time() ) );
+    aPrintText.append( rLocaleWrapper.getTime( Time( Time::SYSTEM ) ) );
 
     pPrinter->DrawText( Rectangle( Point( 1100 + nMaxWidth, 1000 ),
                                     Size( aPaperSize.Width() - 2100 - nMaxWidth,
diff --git a/reportdesign/source/ui/dlg/DateTime.cxx b/reportdesign/source/ui/dlg/DateTime.cxx
index 4edb039..563d24f 100644
--- a/reportdesign/source/ui/dlg/DateTime.cxx
+++ b/reportdesign/source/ui/dlg/DateTime.cxx
@@ -198,12 +198,12 @@ short ODateTimeDialog::Execute()
     double nValue = 0;
     if ( _bTime )
     {
-        Time aCurrentTime;
+        Time aCurrentTime( Time::SYSTEM );
         nValue = ::dbtools::DBTypeConversion::toDouble(::dbtools::DBTypeConversion::toTime(aCurrentTime.GetTime()));
     }
     else
     {
-        Date aCurrentDate;
+        Date aCurrentDate( Date::SYSTEM );
         static ::com::sun::star::util::Date STANDARD_DB_DATE(30,12,1899);
         nValue = ::dbtools::DBTypeConversion::toDouble(::dbtools::DBTypeConversion::toDate(static_cast<sal_Int32>(aCurrentDate.GetDate())),STANDARD_DB_DATE);
     }
diff --git a/sc/inc/chgviset.hxx b/sc/inc/chgviset.hxx
index 630128a..6d95abc 100644
--- a/sc/inc/chgviset.hxx
+++ b/sc/inc/chgviset.hxx
@@ -68,7 +68,9 @@ private:
 
 public:
 
-                        ScChangeViewSettings()
+                        ScChangeViewSettings() :
+                            aFirstDateTime( DateTime::EMPTY ),
+                            aLastDateTime( DateTime::EMPTY )
                         {
                             pCommentSearcher=NULL;
                             bIsDate=false;
diff --git a/sc/inc/externalrefmgr.hxx b/sc/inc/externalrefmgr.hxx
index 80dda70..e0f3158 100644
--- a/sc/inc/externalrefmgr.hxx
+++ b/sc/inc/externalrefmgr.hxx
@@ -404,6 +404,8 @@ private:
     {
         SfxObjectShellRef   maShell;
         Time                maLastAccess;
+
+        SrcShell() : maLastAccess( Time::SYSTEM ) {}
     };
 
     typedef ::boost::unordered_map<sal_uInt16, SrcShell>           DocShellMap;
diff --git a/sc/source/core/data/attrib.cxx b/sc/source/core/data/attrib.cxx
index 54feede..e6596bb 100644
--- a/sc/source/core/data/attrib.cxx
+++ b/sc/source/core/data/attrib.cxx
@@ -780,7 +780,7 @@ bool lcl_ConvertFields(EditEngine& rEng, const String* pCommands)
         while ((nPos = aStr.Search(pCommands[2])) != STRING_NOTFOUND)
         {
             ESelection aSel( nPar,nPos, nPar,nPos+pCommands[2].Len() );
-            rEng.QuickInsertField( SvxFieldItem(SvxDateField(Date(),SVXDATETYPE_VAR), EE_FEATURE_FIELD), aSel );
+            rEng.QuickInsertField( SvxFieldItem(SvxDateField(Date( Date::SYSTEM ),SVXDATETYPE_VAR), EE_FEATURE_FIELD), aSel );
             lcl_SetSpace(aStr, aSel ); bChange = true;
         }
         while ((nPos = aStr.Search(pCommands[3])) != STRING_NOTFOUND)
diff --git a/sc/source/core/data/postit.cxx b/sc/source/core/data/postit.cxx
index d37a536..a8881c0 100644
--- a/sc/source/core/data/postit.cxx
+++ b/sc/source/core/data/postit.cxx
@@ -540,7 +540,7 @@ ScPostIt* ScPostIt::Clone( const ScAddress& rOwnPos, ScDocument& rDestDoc, const
 
 void ScPostIt::AutoStamp()
 {
-    maNoteData.maDate = ScGlobal::pLocaleData->getDate( Date() );
+    maNoteData.maDate = ScGlobal::pLocaleData->getDate( Date( Date::SYSTEM ) );
     maNoteData.maAuthor = SvtUserOptions().GetID();
 }
 
diff --git a/sc/source/core/data/stlpool.cxx b/sc/source/core/data/stlpool.cxx
index fc558dc..30e6926 100644
--- a/sc/source/core/data/stlpool.cxx
+++ b/sc/source/core/data/stlpool.cxx
@@ -462,7 +462,7 @@ void ScStyleSheetPool::CreateStandardStyles()
     aStr = String::CreateFromAscii(RTL_CONSTASCII_STRINGPARAM(", "));
     pEdEngine->SetText( aStr );
     pEdEngine->QuickInsertField( SvxFieldItem(SvxTimeField(), EE_FEATURE_FIELD), ESelection(0,2,0,2) );
-    pEdEngine->QuickInsertField( SvxFieldItem(SvxDateField(Date(),SVXDATETYPE_VAR), EE_FEATURE_FIELD),
+    pEdEngine->QuickInsertField( SvxFieldItem(SvxDateField(Date( Date::SYSTEM ),SVXDATETYPE_VAR), EE_FEATURE_FIELD),
                                     ESelection() );
     pTxtObj = pEdEngine->CreateTextObject();
     pHeaderItem->SetRightArea( *pTxtObj );
diff --git a/sc/source/core/tool/chgtrack.cxx b/sc/source/core/tool/chgtrack.cxx
index b63e5c6..f047773 100644
--- a/sc/source/core/tool/chgtrack.cxx
+++ b/sc/source/core/tool/chgtrack.cxx
@@ -75,6 +75,7 @@ IMPL_FIXEDMEMPOOL_NEWDEL( ScChangeActionLinkEntry, nMemPoolChangeActionLinkEntry
 ScChangeAction::ScChangeAction( ScChangeActionType eTypeP, const ScRange& rRange )
         :
         aBigRange( rRange ),
+        aDateTime( DateTime::SYSTEM ),
         pNext( NULL ),
         pPrev( NULL ),
         pLinkAny( NULL ),
@@ -115,6 +116,7 @@ ScChangeAction::ScChangeAction( ScChangeActionType eTypeP, const ScBigRange& rRa
                         const sal_uLong nTempAction)
         :
         aBigRange( rRange ),
+        aDateTime( DateTime::SYSTEM ),
         pNext( NULL ),
         pPrev( NULL ),
         pLinkAny( NULL ),
@@ -2051,6 +2053,7 @@ SCROW ScChangeTrack::InitContentRowsPerSlot()
 
 
 ScChangeTrack::ScChangeTrack( ScDocument* pDocP ) :
+        aFixDateTime( DateTime::SYSTEM ),
         pDoc( pDocP )
 {
     Init();
@@ -2062,6 +2065,7 @@ ScChangeTrack::ScChangeTrack( ScDocument* pDocP ) :
 
 ScChangeTrack::ScChangeTrack( ScDocument* pDocP, const ScStrCollection& aTempUserCollection) :
         aUserCollection(aTempUserCollection),
+        aFixDateTime( DateTime::SYSTEM ),
         pDoc( pDocP )
 {
     Init();
diff --git a/sc/source/core/tool/chgviset.cxx b/sc/source/core/tool/chgviset.cxx
index d2aa305..5d3f823 100644
--- a/sc/source/core/tool/chgviset.cxx
+++ b/sc/source/core/tool/chgviset.cxx
@@ -43,6 +43,9 @@ ScChangeViewSettings::~ScChangeViewSettings()
 }
 
 ScChangeViewSettings::ScChangeViewSettings( const ScChangeViewSettings& r )
+    :
+        aFirstDateTime( DateTime::EMPTY ),
+        aLastDateTime( DateTime::EMPTY )
 {
     SetTheComment(r.aComment);
 
@@ -155,7 +158,7 @@ void ScChangeViewSettings::AdjustDateMode( const ScDocument& rDoc )
                 aFirstDateTime.SetDate( 18990101 );
                 aFirstDateTime.SetTime( 0 );
             }
-            aLastDateTime = Date();
+            aLastDateTime = Date( Date::SYSTEM );
             aLastDateTime.SetYear( aLastDateTime.GetYear() + 100 );
         }
         break;
diff --git a/sc/source/core/tool/editutil.cxx b/sc/source/core/tool/editutil.cxx
index 75d020a..b513cb2 100644
--- a/sc/source/core/tool/editutil.cxx
+++ b/sc/source/core/tool/editutil.cxx
@@ -631,6 +631,9 @@ String lcl_GetNumStr( sal_Int32 nNo, SvxNumType eType )
 }
 
 ScHeaderFieldData::ScHeaderFieldData()
+    :
+        aDate( Date::EMPTY ),
+        aTime( Time::EMPTY )
 {
     nPageNo = nTotalPages = 0;
     eNumType = SVX_ARABIC;
diff --git a/sc/source/core/tool/interpr2.cxx b/sc/source/core/tool/interpr2.cxx
index 5859a1a..388c318 100644
--- a/sc/source/core/tool/interpr2.cxx
+++ b/sc/source/core/tool/interpr2.cxx
@@ -111,7 +111,7 @@ void ScInterpreter::ScGetActDate()
 {
     RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "sc", "er", "ScInterpreter::ScGetActDate" );
     nFuncFmtType = NUMBERFORMAT_DATE;
-    Date aActDate;
+    Date aActDate( Date::SYSTEM );
     long nDiff = aActDate - *(pFormatter->GetNullDate());
     PushDouble((double) nDiff);
 }
@@ -120,9 +120,9 @@ void ScInterpreter::ScGetActTime()
 {
     RTL_LOGFILE_CONTEXT_AUTHOR( aLogger, "sc", "er", "ScInterpreter::ScGetActTime" );
     nFuncFmtType = NUMBERFORMAT_DATETIME;
-    Date aActDate;
+    Date aActDate( Date::SYSTEM );
     long nDiff = aActDate - *(pFormatter->GetNullDate());
-    Time aActTime;
+    Time aActTime( Time::SYSTEM );
     double nTime = ((double)aActTime.Get100Sec() / 100 +
                     (double)(aActTime.GetSec()        +
                             (aActTime.GetMin()  * 60) +
diff --git a/sc/source/filter/excel/xlpivot.cxx b/sc/source/filter/excel/xlpivot.cxx
index c6b2980..7c581c3 100644
--- a/sc/source/filter/excel/xlpivot.cxx
+++ b/sc/source/filter/excel/xlpivot.cxx
@@ -48,7 +48,8 @@ namespace ScDPGroupBy = ::com::sun::star::sheet::DataPilotFieldGroupBy;
 // ============================================================================
 
 XclPCItem::XclPCItem() :
-    meType( EXC_PCITEM_INVALID )
+    meType( EXC_PCITEM_INVALID ),
+    maDateTime( DateTime::EMPTY )
 {
 }
 
diff --git a/sc/source/filter/xcl97/XclExpChangeTrack.cxx b/sc/source/filter/xcl97/XclExpChangeTrack.cxx
index 5f5687b..8ffc516 100644
--- a/sc/source/filter/xcl97/XclExpChangeTrack.cxx
+++ b/sc/source/filter/xcl97/XclExpChangeTrack.cxx
@@ -1476,7 +1476,7 @@ XclExpChangeTrack::XclExpChangeTrack( const XclExpRoot& rRoot ) :
     aRecList.push_back( new XclExpChTr0x0194( *pTempChangeTrack ) );
 
     String sLastUsername;
-    DateTime aLastDateTime;
+    DateTime aLastDateTime( DateTime::EMPTY );
     sal_uInt32 nIndex = 1;
     sal_Int32 nLogNumber = 1;
     while( XclExpChTrAction* pAction = aActionStack.Pop() )
diff --git a/sc/source/filter/xcl97/XclImpChangeTrack.cxx b/sc/source/filter/xcl97/XclImpChangeTrack.cxx
index c69ef95..926c537 100644
--- a/sc/source/filter/xcl97/XclImpChangeTrack.cxx
+++ b/sc/source/filter/xcl97/XclImpChangeTrack.cxx
@@ -318,7 +318,7 @@ void XclImpChangeTrack::ReadChTrInfo()
     pStrm->Seek( 148 );
     if( !pStrm->IsValid() ) return;
 
-    DateTime aDateTime;
+    DateTime aDateTime( DateTime::EMPTY );
     ReadDateTime( aDateTime );
     if( pStrm->IsValid() )
         pChangeTrack->SetFixDateTimeLocal( aDateTime );
diff --git a/sc/source/filter/xml/xmlimprt.cxx b/sc/source/filter/xml/xmlimprt.cxx
index bf4d651..570bb7f 100644
--- a/sc/source/filter/xml/xmlimprt.cxx
+++ b/sc/source/filter/xml/xmlimprt.cxx
@@ -2164,7 +2164,7 @@ void ScXMLImport::SetChangeTrackingViewSettings(const com::sun::star::uno::Seque
                     util::DateTime aDateTime;
                     if (rChangeProps[i].Value >>= aDateTime)
                     {
-                        DateTime aCoreDateTime;
+                        DateTime aCoreDateTime( DateTime::EMPTY );
                         ScXMLConverter::ConvertAPIToCoreDateTime(aDateTime, aCoreDateTime);
                         pViewSettings->SetTheFirstDateTime(aCoreDateTime);
                     }
@@ -2174,7 +2174,7 @@ void ScXMLImport::SetChangeTrackingViewSettings(const com::sun::star::uno::Seque
                     util::DateTime aDateTime;
                     if (rChangeProps[i].Value >>= aDateTime)
                     {
-                        DateTime aCoreDateTime;
+                        DateTime aCoreDateTime( DateTime::EMPTY );
                         ScXMLConverter::ConvertAPIToCoreDateTime(aDateTime, aCoreDateTime);
                         pViewSettings->SetTheLastDateTime(aCoreDateTime);
                     }
diff --git a/sc/source/ui/dbgui/scendlg.cxx b/sc/source/ui/dbgui/scendlg.cxx
index bb36477..238c202 100644
--- a/sc/source/ui/dbgui/scendlg.cxx
+++ b/sc/source/ui/dbgui/scendlg.cxx
@@ -107,9 +107,9 @@ ScNewScenarioDlg::ScNewScenarioDlg( Window* pParent, const String& rName, sal_Bo
     aComment.AppendAscii(RTL_CONSTASCII_STRINGPARAM( ", " ));
     aComment += String( ScResId( STR_ON ) );
     aComment += ' ';
-    aComment += ScGlobal::GetpLocaleData()->getDate( Date() );
+    aComment += ScGlobal::GetpLocaleData()->getDate( Date( Date::SYSTEM ) );
     aComment.AppendAscii(RTL_CONSTASCII_STRINGPARAM( ", " ));
-    aComment += ScGlobal::GetpLocaleData()->getTime( Time() );
+    aComment += ScGlobal::GetpLocaleData()->getTime( Time( Time::SYSTEM ) );
 
     aEdComment  .SetText( aComment );
     aEdName     .SetText( rName );
diff --git a/sc/source/ui/docshell/externalrefmgr.cxx b/sc/source/ui/docshell/externalrefmgr.cxx
index a9497a2..82272c6 100644
--- a/sc/source/ui/docshell/externalrefmgr.cxx
+++ b/sc/source/ui/docshell/externalrefmgr.cxx
@@ -2123,7 +2123,7 @@ const ScDocument* ScExternalRefManager::getSrcDocument(sal_uInt16 nFileId)
         // document already loaded.
 
         SfxObjectShell* p = itr->second.maShell;
-        itr->second.maLastAccess = Time();
+        itr->second.maLastAccess = Time( Time::SYSTEM );
         return static_cast<ScDocShell*>(p)->GetDocument();
     }
 
@@ -2604,7 +2604,7 @@ void ScExternalRefManager::purgeStaleSrcDocument(sal_Int32 nTimeOut)
     for (; itr != itrEnd; ++itr)
     {
         // in 100th of a second.
-        sal_Int32 nSinceLastAccess = (Time() - itr->second.maLastAccess).GetTime();
+        sal_Int32 nSinceLastAccess = (Time( Time::SYSTEM ) - itr->second.maLastAccess).GetTime();
         if (nSinceLastAccess < nTimeOut)
             aNewDocShells.insert(*itr);
         else
diff --git a/sc/source/ui/miscdlgs/acredlin.cxx b/sc/source/ui/miscdlgs/acredlin.cxx
index 82e73ae..31944f3 100644
--- a/sc/source/ui/miscdlgs/acredlin.cxx
+++ b/sc/source/ui/miscdlgs/acredlin.cxx
@@ -795,7 +795,6 @@ long ScAcceptChgDlg::PreNotify( NotifyEvent& rNEvt )
 void ScAcceptChgDlg::UpdateView()
 {
     bNeedsUpdate=false;
-    DateTime aDateTime;
     SvLBoxEntry* pParent=NULL;
     ScChangeTrack* pChanges=NULL;
     const ScChangeAction* pScChangeAction=NULL;
@@ -1464,7 +1463,6 @@ void ScAcceptChgDlg::AppendChanges(ScChangeTrack* pChanges,sal_uLong nStartActio
 {
     if(pChanges!=NULL)
     {
-        DateTime aDateTime;
         SvLBoxEntry* pParent=NULL;
         const ScChangeAction* pScChangeAction=NULL;
         bAcceptEnableFlag=true;
diff --git a/sc/source/ui/pagedlg/scuitphfedit.cxx b/sc/source/ui/pagedlg/scuitphfedit.cxx
index e677820..d688d6d 100644
--- a/sc/source/ui/pagedlg/scuitphfedit.cxx
+++ b/sc/source/ui/pagedlg/scuitphfedit.cxx
@@ -686,7 +686,7 @@ void ScHFEditPage::ProcessDefinedListSel(ScHFEntryId eSel, bool bTravelling)
             aConfidentialEntry += ' ';
             aConfidentialEntry += ScGlobal::GetRscString( STR_HF_CONFIDENTIAL );
             aWndLeft.GetEditEngine()->SetText(aConfidentialEntry);
-            aWndCenter.InsertField( SvxFieldItem(SvxDateField(Date(),SVXDATETYPE_VAR), EE_FEATURE_FIELD) );
+            aWndCenter.InsertField( SvxFieldItem(SvxDateField(Date( Date::SYSTEM ),SVXDATETYPE_VAR), EE_FEATURE_FIELD) );
             String aPageEntry(ScGlobal::GetRscString( STR_PAGE ) );
             aPageEntry += ' ';
             aWndRight.GetEditEngine()->SetText(aPageEntry);
@@ -792,7 +792,7 @@ void ScHFEditPage::ProcessDefinedListSel(ScHFEntryId eSel, bool bTravelling)
             aPageEntry += ' ';
             aWndCenter.GetEditEngine()->SetText(aPageEntry);
             aWndCenter.InsertField( SvxFieldItem(SvxPageField(), EE_FEATURE_FIELD) );
-            aWndRight.InsertField( SvxFieldItem(SvxDateField(Date(),SVXDATETYPE_VAR), EE_FEATURE_FIELD) );
+            aWndRight.InsertField( SvxFieldItem(SvxDateField(Date( Date::SYSTEM ),SVXDATETYPE_VAR), EE_FEATURE_FIELD) );
             if(!bTravelling)
                 aWndRight.GrabFocus();
         }
@@ -807,7 +807,7 @@ void ScHFEditPage::ProcessDefinedListSel(ScHFEntryId eSel, bool bTravelling)
             aCreatedByEntry += ' ';
             aCreatedByEntry += (String)aUserOpt.GetLastName();
             aWndLeft.GetEditEngine()->SetText(aCreatedByEntry);
-            aWndCenter.InsertField( SvxFieldItem(SvxDateField(Date(),SVXDATETYPE_VAR), EE_FEATURE_FIELD) );
+            aWndCenter.InsertField( SvxFieldItem(SvxDateField(Date( Date::SYSTEM ),SVXDATETYPE_VAR), EE_FEATURE_FIELD) );
             String aPageEntry(ScGlobal::GetRscString( STR_PAGE ) );
             aPageEntry += ' ';
             aWndRight.GetEditEngine()->SetText(aPageEntry);
@@ -874,7 +874,7 @@ IMPL_LINK( ScHFEditPage, ClickHdl, ImageButton*, pBtn )
         else if ( pBtn == &aBtnLastPage )
             pActiveEdWnd->InsertField( SvxFieldItem(SvxPagesField(), EE_FEATURE_FIELD) );
         else if ( pBtn == &aBtnDate )
-            pActiveEdWnd->InsertField( SvxFieldItem(SvxDateField(Date(),SVXDATETYPE_VAR), EE_FEATURE_FIELD) );
+            pActiveEdWnd->InsertField( SvxFieldItem(SvxDateField(Date( Date::SYSTEM ),SVXDATETYPE_VAR), EE_FEATURE_FIELD) );
         else if ( pBtn == &aBtnTime )
             pActiveEdWnd->InsertField( SvxFieldItem(SvxTimeField(), EE_FEATURE_FIELD) );
         else if ( pBtn == &aBtnFile )
diff --git a/sc/source/ui/view/preview.cxx b/sc/source/ui/view/preview.cxx
index 186205c..1c0d37a 100644
--- a/sc/source/ui/view/preview.cxx
+++ b/sc/source/ui/view/preview.cxx
@@ -104,6 +104,8 @@ ScPreview::ScPreview( Window* pParent, ScDocShell* pDocSh, ScPreviewShell* pView
     nTab( 0 ),
     nTabStart( 0 ),
     nDisplayStart( 0 ),
+    aDate( Date::SYSTEM ),
+    aTime( Time::SYSTEM ),
     nTotalPages( 0 ),
     pLocationData( NULL ),
     pDrawView( NULL ),
@@ -657,8 +659,8 @@ void ScPreview::DataChanged(bool bNewTime)
 {
     if (bNewTime)
     {
-        aDate = Date();
-        aTime = Time();
+        aDate = Date( Date::SYSTEM );
+        aTime = Time( Time::SYSTEM );
     }
 
     bValid = false;
diff --git a/sc/source/ui/view/printfun.cxx b/sc/source/ui/view/printfun.cxx
index b6af96a..e6484ce 100644
--- a/sc/source/ui/view/printfun.cxx
+++ b/sc/source/ui/view/printfun.cxx
@@ -1035,7 +1035,7 @@ void ScPrintFunc::InitParam( const ScPrintOptions* pOptions )
     else
         aFieldData.nTotalPages = nTotalPages;
 
-    SetDateTime( Date(), Time() );
+    SetDateTime( Date( Date::SYSTEM ), Time( Time::SYSTEM ) );
 
     aFieldData.aTitle       = pDocShell->GetTitle();
     const INetURLObject& rURLObj = pDocShell->GetMedium()->GetURLObject();
diff --git a/sc/source/ui/view/viewfun6.cxx b/sc/source/ui/view/viewfun6.cxx
index 1b7eb4c..0f4736e 100644
--- a/sc/source/ui/view/viewfun6.cxx
+++ b/sc/source/ui/view/viewfun6.cxx
@@ -293,9 +293,9 @@ void ScViewFunc::InsertCurrentTime(short nCellFmt, const OUString& rUndoStr)
     ScDocument* pDoc = pDocSh->GetDocument();
     ::svl::IUndoManager* pUndoMgr = pDocSh->GetUndoManager();
     SvNumberFormatter* pFormatter = pDoc->GetFormatTable();
-    Date aActDate;
+    Date aActDate( Date::SYSTEM );
     double fDate = aActDate - *pFormatter->GetNullDate();
-    Time aActTime;
+    Time aActTime( Time::SYSTEM );
     double fTime =
         aActTime.Get100Sec() / 100.0 + aActTime.GetSec() +
         (aActTime.GetMin() * 60.0) + (aActTime.GetHour() * 3600.0);
diff --git a/sd/source/filter/html/pubdlg.cxx b/sd/source/filter/html/pubdlg.cxx
index 7348b63..6a9515d 100644
--- a/sd/source/filter/html/pubdlg.cxx
+++ b/sd/source/filter/html/pubdlg.cxx
@@ -1457,7 +1457,7 @@ void SdPublishingDlg::SetDesign( SdPublishingDesign* pDesign )
     pPage2_ChgDefault->Check( !pDesign->m_bAutoSlide );
     pPage2_ChgAuto->Check( pDesign->m_bAutoSlide );
 
-    Time aTime;
+    Time aTime( Time::EMPTY );
     aTime.MakeTimeFromMS( pDesign->m_nSlideDuration * 1000 );
     pPage2_Duration->SetTime( aTime );
 
diff --git a/sd/source/ui/annotations/annotationmanager.cxx b/sd/source/ui/annotations/annotationmanager.cxx
index 625ecd4..fdc9655 100644
--- a/sd/source/ui/annotations/annotationmanager.cxx
+++ b/sd/source/ui/annotations/annotationmanager.cxx
@@ -168,11 +168,12 @@ OUString getAnnotationDateTimeString( const Reference< XAnnotation >& xAnnotatio
 
         com::sun::star::util::DateTime aDateTime( xAnnotation->getDateTime() );
 
+        Date aSysDate( Date::SYSTEM );
         Date aDate = Date( aDateTime.Day, aDateTime.Month, aDateTime.Year );
-        if (aDate==Date())
+        if (aDate==aSysDate)
             sRet = sRet + String(SdResId(STR_ANNOTATION_TODAY));
         else
-        if (aDate == Date(Date()-1))
+        if (aDate == Date(aSysDate-1))
             sRet = sRet + String(SdResId(STR_ANNOTATION_YESTERDAY));
         else
         if (aDate.IsValidAndGregorian() )
diff --git a/sd/source/ui/app/sdmod2.cxx b/sd/source/ui/app/sdmod2.cxx
index 7d4ab16..ceeaf66 100644
--- a/sd/source/ui/app/sdmod2.cxx
+++ b/sd/source/ui/app/sdmod2.cxx
@@ -389,8 +389,8 @@ IMPL_LINK(SdModule, CalcFieldValueHdl, EditFieldInfo*, pInfo)
                         }
                         else
                         {
-                            Date aDate;
-                            Time aTime;
+                            Date aDate( Date::SYSTEM );
+                            Time aTime( Time::SYSTEM );
                             LanguageType eLang = pInfo->GetOutliner()->GetLanguage( pInfo->GetPara(), pInfo->GetPos() );
                             aRepresentation = SvxDateTimeField::GetFormatted( aDate, aTime, (SvxDateFormat)rSettings.meDateTimeFormat, *GetNumberFormatter(), eLang );
                         }
diff --git a/sd/source/ui/app/sdpopup.cxx b/sd/source/ui/app/sdpopup.cxx
index bfb350f..65631d5 100644
--- a/sd/source/ui/app/sdpopup.cxx
+++ b/sd/source/ui/app/sdpopup.cxx
@@ -223,7 +223,7 @@ SvxFieldData* SdFieldPopup::GetField()
 
             if( (pDateField->GetType() == SVXDATETYPE_VAR) && (eType == SVXDATETYPE_FIX) )
             {
-                Date aDate;
+                Date aDate( Date::SYSTEM );
                 ( (SvxDateField*) pNewField )->SetFixDate( aDate );
             }
         }
@@ -256,7 +256,7 @@ SvxFieldData* SdFieldPopup::GetField()
 
             if( (pTimeField->GetType() == SVXTIMETYPE_VAR) && (eType == SVXTIMETYPE_FIX) )
             {
-                Time aTime;
+                Time aTime( Time::SYSTEM );
                 ( (SvxExtTimeField*) pNewField )->SetFixTime( aTime );
             }
 
diff --git a/sd/source/ui/dlg/headerfooterdlg.cxx b/sd/source/ui/dlg/headerfooterdlg.cxx
index 0e15017..e3e11d2 100644
--- a/sd/source/ui/dlg/headerfooterdlg.cxx
+++ b/sd/source/ui/dlg/headerfooterdlg.cxx
@@ -575,8 +575,8 @@ void HeaderFooterTabPage::FillFormatList( int eFormat )
 
     maCBDateTimeFormat.Clear();
 
-    Date aDate;
-    Time aTime;
+    Date aDate( Date::SYSTEM );
+    Time aTime( Time::SYSTEM );
 
     int nFormat;
     for( nFormat = 0; nFormat < nDateTimeFormatsCount; nFormat++ )
diff --git a/sd/source/ui/tools/TimerBasedTaskExecution.cxx b/sd/source/ui/tools/TimerBasedTaskExecution.cxx
index 42c1abc..06061af 100644
--- a/sd/source/ui/tools/TimerBasedTaskExecution.cxx
+++ b/sd/source/ui/tools/TimerBasedTaskExecution.cxx
@@ -147,14 +147,14 @@ IMPL_LINK(TimerBasedTaskExecution,TimerCallback, Timer*,EMPTYARG)
             // Execute as many steps as fit into the time span of length
             // mnMaxTimePerStep.  Note that the last step may take longer
             // than allowed.
-            sal_uInt32 nStartTime (Time().GetMSFromTime());
+            sal_uInt32 nStartTime (Time( Time::SYSTEM ).GetMSFromTime());
 #ifdef VERBOSE
             OSL_TRACE("starting TimerBasedTaskExecution at %d", nStartTime);
 #endif
             do
             {
                 mpTask->RunNextStep();
-                sal_uInt32 nDuration (Time().GetMSFromTime()-nStartTime);
+                sal_uInt32 nDuration (Time( Time::SYSTEM ).GetMSFromTime()-nStartTime);
 #ifdef VERBOSE
             OSL_TRACE("executed step in %d", nDuration);
 #endif
diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx
index 22f02fc..1a49b7f 100644
--- a/sd/source/ui/unoidl/unomodel.cxx
+++ b/sd/source/ui/unoidl/unomodel.cxx
@@ -1546,7 +1546,7 @@ void ImplPDFExportComments( uno::Reference< drawing::XDrawPage > xPage, vcl::PDF
             util::DateTime aDateTime( xAnnotation->getDateTime() );
 
             Date aDate( aDateTime.Day, aDateTime.Month, aDateTime.Year );
-            Time aTime;
+            Time aTime( Time::EMPTY );
             String aStr( SvxDateTimeField::GetFormatted( aDate, aTime, SVXDATEFORMAT_B, *(SD_MOD()->GetNumberFormatter()), eLanguage ) );
 
             vcl::PDFNote aNote;
diff --git a/sd/source/ui/view/DocumentRenderer.cxx b/sd/source/ui/view/DocumentRenderer.cxx
index c917d2a..0d15f44 100644
--- a/sd/source/ui/view/DocumentRenderer.cxx
+++ b/sd/source/ui/view/DocumentRenderer.cxx
@@ -1500,12 +1500,12 @@ private:
             // Collect some frequently used data.
             if (mpOptions->IsDate())
             {
-                aInfo.msTimeDate += GetSdrGlobalData().GetLocaleData()->getDate( Date() );
+                aInfo.msTimeDate += GetSdrGlobalData().GetLocaleData()->getDate( Date( Date::SYSTEM ) );
                 aInfo.msTimeDate += ::rtl::OUString((sal_Unicode)' ');
             }
 
             if (mpOptions->IsTime())
-                aInfo.msTimeDate += GetSdrGlobalData().GetLocaleData()->getTime( Time(), sal_False, sal_False );
+                aInfo.msTimeDate += GetSdrGlobalData().GetLocaleData()->getTime( Time( Time::SYSTEM ), sal_False, sal_False );
             aInfo.maPrintSize = aInfo.mpPrinter->GetOutputSize();
             maPrintSize = awt::Size(
                 aInfo.mpPrinter->GetPaperSize().Width(),
diff --git a/sd/source/ui/view/drviewsb.cxx b/sd/source/ui/view/drviewsb.cxx
index 4826ec7..27ba354 100644
--- a/sd/source/ui/view/drviewsb.cxx
+++ b/sd/source/ui/view/drviewsb.cxx
@@ -500,7 +500,7 @@ void DrawViewShell::FuTemp02(SfxRequest& rReq)
             {
                 case SID_INSERT_FLD_DATE_FIX:
                     pFieldItem = new SvxFieldItem(
-                        SvxDateField( Date(), SVXDATETYPE_FIX ), EE_FEATURE_FIELD );
+                        SvxDateField( Date( Date::SYSTEM ), SVXDATETYPE_FIX ), EE_FEATURE_FIELD );
                 break;
 
                 case SID_INSERT_FLD_DATE_VAR:
@@ -509,7 +509,7 @@ void DrawViewShell::FuTemp02(SfxRequest& rReq)
 
                 case SID_INSERT_FLD_TIME_FIX:
                     pFieldItem = new SvxFieldItem(
-                        SvxExtTimeField( Time(), SVXTIMETYPE_FIX ), EE_FEATURE_FIELD );
+                        SvxExtTimeField( Time( Time::SYSTEM ), SVXTIMETYPE_FIX ), EE_FEATURE_FIELD );
                 break;
 
                 case SID_INSERT_FLD_TIME_VAR:
diff --git a/sd/source/ui/view/outlnvs2.cxx b/sd/source/ui/view/outlnvs2.cxx
index 068b0a3..3e16529 100644
--- a/sd/source/ui/view/outlnvs2.cxx
+++ b/sd/source/ui/view/outlnvs2.cxx
@@ -460,7 +460,7 @@ void OutlineViewShell::FuTemporaryModify(SfxRequest &rReq)
             {
                 case SID_INSERT_FLD_DATE_FIX:
                     pFieldItem = new SvxFieldItem(
-                        SvxDateField( Date(), SVXDATETYPE_FIX ), EE_FEATURE_FIELD );
+                        SvxDateField( Date( Date::SYSTEM ), SVXDATETYPE_FIX ), EE_FEATURE_FIELD );
                 break;
 
                 case SID_INSERT_FLD_DATE_VAR:
@@ -469,7 +469,7 @@ void OutlineViewShell::FuTemporaryModify(SfxRequest &rReq)
 
                 case SID_INSERT_FLD_TIME_FIX:
                     pFieldItem = new SvxFieldItem(
-                        SvxExtTimeField( Time(), SVXTIMETYPE_FIX ), EE_FEATURE_FIELD );
+                        SvxExtTimeField( Time( Time::SYSTEM ), SVXTIMETYPE_FIX ), EE_FEATURE_FIELD );
                 break;
 
                 case SID_INSERT_FLD_TIME_VAR:
diff --git a/sfx2/source/appl/sfxpicklist.cxx b/sfx2/source/appl/sfxpicklist.cxx
index 98ac2d6..b0169a5 100644
--- a/sfx2/source/appl/sfxpicklist.cxx
+++ b/sfx2/source/appl/sfxpicklist.cxx
@@ -332,7 +332,7 @@ void SfxPickList::Notify( SfxBroadcaster&, const SfxHint& rHint )
                     pDocSh->getDocProperties());
                 if (xDocProps.is()) {
                     xDocProps->setAuthor( SvtUserOptions().GetFullName() );
-                    ::DateTime now;
+                    ::DateTime now( ::DateTime::SYSTEM );
                     xDocProps->setCreationDate( util::DateTime(
                         now.Get100Sec(), now.GetSec(), now.GetMin(),
                         now.GetHour(), now.GetDay(), now.GetMonth(),
diff --git a/sfx2/source/bastyp/helper.cxx b/sfx2/source/bastyp/helper.cxx
index a76c0fb..2e1d79c 100644
--- a/sfx2/source/bastyp/helper.cxx
+++ b/sfx2/source/bastyp/helper.cxx
@@ -76,7 +76,7 @@ typedef vector< OUString* > StringList_Impl;
 void AppendDateTime_Impl( const util::DateTime rDT,
                           String& rRow, const LocaleDataWrapper& rWrapper )
 {
-    DateTime aDT;
+    DateTime aDT( DateTime::EMPTY );
     CONVERT_DATETIME( rDT, aDT );
     String aDateStr = rWrapper.getDate( aDT );
     aDateStr += String::CreateFromAscii( ", " );
diff --git a/sfx2/source/dialog/dinfdlg.cxx b/sfx2/source/dialog/dinfdlg.cxx
index ca68dcf..ac3858c 100644
--- a/sfx2/source/dialog/dinfdlg.cxx
+++ b/sfx2/source/dialog/dinfdlg.cxx
@@ -377,7 +377,7 @@ int SfxDocumentInfoItem::operator==( const SfxPoolItem& rItem) const
 void SfxDocumentInfoItem::resetUserData(const ::rtl::OUString & i_rAuthor)
 {
     setAuthor(i_rAuthor);
-    DateTime now;
+    DateTime now( DateTime::SYSTEM );
     setCreationDate( util::DateTime(
         now.Get100Sec(), now.GetSec(), now.GetMin(), now.GetHour(),
         now.GetDay(), now.GetMonth(), now.GetYear() ) );
@@ -884,7 +884,7 @@ IMPL_LINK( SfxDocumentPage, DeleteHdl, PushButton*, EMPTYARG )
     if ( bEnableUseUserData && aUseUserDataCB.IsChecked() )
         aName = SvtUserOptions().GetFullName();
     LocaleDataWrapper aLocaleWrapper( ::comphelper::getProcessServiceFactory(), Application::GetSettings().GetLocale() );
-    DateTime now;
+    DateTime now( DateTime::SYSTEM );
     util::DateTime uDT(
         now.Get100Sec(), now.GetSec(), now.GetMin(), now.GetHour(),
         now.GetDay(), now.GetMonth(), now.GetYear() );
diff --git a/sfx2/source/dialog/versdlg.cxx b/sfx2/source/dialog/versdlg.cxx
index 88c4fa6..8c5d14d 100644
--- a/sfx2/source/dialog/versdlg.cxx
+++ b/sfx2/source/dialog/versdlg.cxx
@@ -66,6 +66,7 @@ struct SfxVersionInfo
 
                             SfxVersionInfo();
                             SfxVersionInfo( const SfxVersionInfo& rInfo )
+                                : aCreationDate( DateTime::EMPTY )
                             { *this = rInfo; }
 
     SfxVersionInfo&         operator=( const SfxVersionInfo &rInfo )
@@ -142,6 +143,7 @@ SfxVersionTableDtor& SfxVersionTableDtor::operator=( const SfxVersionTableDtor&
 
 //----------------------------------------------------------------
 SfxVersionInfo::SfxVersionInfo()
+    : aCreationDate( DateTime::EMPTY )
 {
 }
 
@@ -325,7 +327,7 @@ void SfxVersionDialog::Open_Impl()
 void SfxVersionDialog::RecalcDateColumn()
 {
     // recalculate the datetime column width
-    DateTime aNow;
+    DateTime aNow( DateTime::SYSTEM );
     mpLocaleWrapper = new LocaleDataWrapper(
         ::comphelper::getProcessServiceFactory(), Application::GetSettings().GetLocale() );
     String sDateTime = ConvertDateTime_Impl( aNow, *mpLocaleWrapper );
diff --git a/sfx2/source/doc/SfxDocumentMetaData.cxx b/sfx2/source/doc/SfxDocumentMetaData.cxx
index cbe1ec9..a46318d 100644
--- a/sfx2/source/doc/SfxDocumentMetaData.cxx
+++ b/sfx2/source/doc/SfxDocumentMetaData.cxx
@@ -1883,7 +1883,7 @@ SfxDocumentMetaData::resetUserData(const ::rtl::OUString & the_value)
 
     bool bModified( false );
     bModified |= setMetaText("meta:initial-creator", the_value);
-    ::DateTime now = DateTime();
+    ::DateTime now( ::DateTime::SYSTEM );
     css::util::DateTime uDT(now.Get100Sec(), now.GetSec(), now.GetMin(),
         now.GetHour(), now.GetDay(), now.GetMonth(), now.GetYear());
     bModified |= setMetaText("meta:creation-date", dateTimeToText(uDT));
diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx
index 097eba9..fd2fb1e 100644
--- a/sfx2/source/doc/docfile.cxx
+++ b/sfx2/source/doc/docfile.cxx
@@ -340,7 +340,7 @@ SfxMedium_Impl::SfxMedium_Impl( SfxMedium* pAntiImplP )
     pAntiImpl( pAntiImplP ),
     nFileVersion( 0 ),
     pOrigFilter( 0 ),
-    aExpireTime( Date() + 10, Time() ),
+    aExpireTime( Date( Date::SYSTEM ) + 10, Time( Time::SYSTEM ) ),
     pTempFile( NULL ),
     nLastStorageError( 0 ),
     m_bRemoveBackup( sal_False ),
@@ -2969,7 +2969,7 @@ void SfxMedium::SetExpired_Impl( const DateTime& rDateTime )
 
 sal_Bool SfxMedium::IsExpired() const
 {
-    return pImp->aExpireTime.IsValidAndGregorian() && pImp->aExpireTime < DateTime();
+    return pImp->aExpireTime.IsValidAndGregorian() && pImp->aExpireTime < DateTime( DateTime::SYSTEM );
 }
 //----------------------------------------------------------------
 
diff --git a/sfx2/source/doc/objcont.cxx b/sfx2/source/doc/objcont.cxx
index 7c061a7..9e3a137 100644
--- a/sfx2/source/doc/objcont.cxx
+++ b/sfx2/source/doc/objcont.cxx
@@ -206,7 +206,7 @@ void SfxObjectShell::UpdateDocInfoForSave()
         else
         {
             // update ModificationAuthor, revision and editing time
-            ::DateTime now;
+            ::DateTime now( ::DateTime::SYSTEM );
             xDocProps->setModificationDate( util::DateTime(
                 now.Get100Sec(), now.GetSec(), now.GetMin(),
                 now.GetHour(), now.GetDay(), now.GetMonth(),
@@ -241,7 +241,7 @@ void SfxObjectShell::UpdateTime_Impl(
             secs/3600, (secs%3600)/60, secs%60, 0);
 
     // Initialize some local member! Its neccessary for wollow operations!
-    DateTime    aNow                    ;   // Date and time at current moment
+    DateTime    aNow( DateTime::SYSTEM );   // Date and time at current moment
     Time        n24Time     (24,0,0,0)  ;   // Time-value for 24 hours - see follow calculation
     sal_uIntPtr     nDays       = 0         ;   // Count of days between now and last editing
     Time        nAddTime    (0)         ;   // Value to add on aOldTime
@@ -1009,7 +1009,7 @@ void SfxObjectShell::ResetFromTemplate( const String& rTemplateName, const Strin
                 xDocProps->setTemplateURL( aObj.GetMainURL(INetURLObject::DECODE_TO_IURI) );
                 xDocProps->setTemplateName( rTemplateName );
 
-                ::DateTime now;
+                ::DateTime now( ::DateTime::SYSTEM );
                 xDocProps->setTemplateDate( util::DateTime(
                     now.Get100Sec(), now.GetSec(), now.GetMin(),
                     now.GetHour(), now.GetDay(), now.GetMonth(),
diff --git a/sfx2/source/doc/objmisc.cxx b/sfx2/source/doc/objmisc.cxx
index 5827def..a84206d 100644
--- a/sfx2/source/doc/objmisc.cxx
+++ b/sfx2/source/doc/objmisc.cxx
@@ -1673,7 +1673,7 @@ void SfxHeaderAttributes_Impl::SetAttribute( const SvKeyValue& rKV )
     }
     else if( rKV.GetKey().CompareIgnoreCaseToAscii( "expires" ) == COMPARE_EQUAL )
     {
-        DateTime aDateTime;
+        DateTime aDateTime( DateTime::EMPTY );
         if( INetRFC822Message::ParseDateField( rKV.GetValue(), aDateTime ) )
         {
             aDateTime.ConvertToLocalTime();
diff --git a/sfx2/source/doc/objstor.cxx b/sfx2/source/doc/objstor.cxx
index cbaf443..db5682f 100644
--- a/sfx2/source/doc/objstor.cxx
+++ b/sfx2/source/doc/objstor.cxx
@@ -1490,7 +1490,7 @@ sal_Bool SfxObjectShell::SaveTo_Impl
                     // if not transferred as a parameter, get it from user settings
                     aInfo.Author = SvtUserOptions().GetFullName();
 
-                DateTime aTime;
+                DateTime aTime( DateTime::SYSTEM );
                 aInfo.TimeStamp.Day = aTime.GetDay();
                 aInfo.TimeStamp.Month = aTime.GetMonth();
                 aInfo.TimeStamp.Year = aTime.GetYear();
diff --git a/sfx2/source/doc/objxtor.cxx b/sfx2/source/doc/objxtor.cxx
index 1aab3b0..d4e8b56 100644
--- a/sfx2/source/doc/objxtor.cxx
+++ b/sfx2/source/doc/objxtor.cxx
@@ -222,7 +222,7 @@ SfxObjectShell_Impl::SfxObjectShell_Impl( SfxObjectShell& _rDocShell )
     ,rDocShell( _rDocShell )
     ,aMacroMode( *this )
     ,pProgress( 0)
-    ,nTime()
+    ,nTime( DateTime::EMPTY )
     ,nVisualDocumentNumber( USHRT_MAX)
     ,nDocumentSignatureState( SIGNATURESTATE_UNKNOWN )
     ,nScriptingSignatureState( SIGNATURESTATE_UNKNOWN )
diff --git a/sfx2/source/view/viewprn.cxx b/sfx2/source/view/viewprn.cxx
index fd8d3f6..eec04ce 100644
--- a/sfx2/source/view/viewprn.cxx
+++ b/sfx2/source/view/viewprn.cxx
@@ -320,7 +320,7 @@ void SfxPrinterController::jobStarted()
         xDocProps->setPrintedBy( mpObjectShell->IsUseUserData()
             ? ::rtl::OUString( SvtUserOptions().GetFullName() )
             : ::rtl::OUString() );
-        ::DateTime now;
+        ::DateTime now( ::DateTime::SYSTEM );
 
         xDocProps->setPrintDate( util::DateTime(
             now.Get100Sec(), now.GetSec(), now.GetMin(), now.GetHour(),
diff --git a/svl/source/items/dateitem.cxx b/svl/source/items/dateitem.cxx
index 67ed229..e532995 100644
--- a/svl/source/items/dateitem.cxx
+++ b/svl/source/items/dateitem.cxx
@@ -55,7 +55,8 @@ TYPEINIT1(SfxDateTimeItem, SfxPoolItem);
 // -----------------------------------------------------------------------
 
 SfxDateTimeItem::SfxDateTimeItem( sal_uInt16 which ) :
-    SfxPoolItem( which )
+    SfxPoolItem( which ),
+    aDateTime( DateTime::SYSTEM )
 {
     DBG_CTOR(SfxDateTimeItem, 0);
 }
diff --git a/svl/source/numbers/zforfind.cxx b/svl/source/numbers/zforfind.cxx
index 556981e..6e1cde0 100644
--- a/svl/source/numbers/zforfind.cxx
+++ b/svl/source/numbers/zforfind.cxx
@@ -1017,7 +1017,7 @@ bool ImpSvNumberInputScan::GetDateRef( double& fDays, sal_uInt16& nCounter,
     CalendarWrapper* pCal = pFormatter->GetCalendar();
     for ( int nTryOrder = 1; nTryOrder <= nFormatOrder; nTryOrder++ )
     {
-        pCal->setGregorianDateTime( Date() );       // today
+        pCal->setGregorianDateTime( Date( Date::SYSTEM ) );       // today
         String aOrgCalendar;        // empty => not changed yet
         DateFormat DateFmt;
         bool bFormatTurn;
@@ -1207,7 +1207,7 @@ input for the following reasons:
                         if ( !bHadExact || !pCal->isValid() )
                         {
                             if ( !bHadExact && nExactDateOrder )
-                                pCal->setGregorianDateTime( Date() );   // reset today
+                                pCal->setGregorianDateTime( Date( Date::SYSTEM ) );   // reset today
                             switch (DateFmt)
                             {
                                 case MDY:
diff --git a/svtools/source/contnr/contentenumeration.hxx b/svtools/source/contnr/contentenumeration.hxx
index 70e9a2a..c8e42ba 100644
--- a/svtools/source/contnr/contentenumeration.hxx
+++ b/svtools/source/contnr/contentenumeration.hxx
@@ -84,6 +84,7 @@ namespace svt
     };
 
     inline SortingData_Impl::SortingData_Impl() :
+        maModDate       ( DateTime::EMPTY ),
         maSize          ( 0 ),
         mbIsFolder      ( sal_False ),
         mbIsVolume      ( sal_False ),
diff --git a/svtools/source/control/calendar.cxx b/svtools/source/control/calendar.cxx
index 4ff76c3..e1d536d 100644
--- a/svtools/source/control/calendar.cxx
+++ b/svtools/source/control/calendar.cxx
@@ -291,6 +291,7 @@ Calendar::Calendar( Window* pParent, WinBits nWinStyle ) :
     maOldFormatLastDate( 0, 0, 1900 ),
     maFirstDate( 0, 0, 1900 ),
     maOldFirstDate( 0, 0, 1900 ),
+    maCurDate( Date::SYSTEM ),
     maOldCurDate( 0, 0, 1900 ),
     maAnchorDate( maCurDate ),
     maDropDate( 0, 0, 1900 )
@@ -867,7 +868,7 @@ void Calendar::ImplDrawDate( long nX, long nY,
     if ( nToday )
         aTodayDate.SetDate( nToday );
     else
-        aTodayDate = Date();
+        aTodayDate = Date( Date::SYSTEM );
     if ( (nDay   == aTodayDate.GetDay()) &&
          (nMonth == aTodayDate.GetMonth()) &&
          (nYear  == aTodayDate.GetYear()) )
@@ -932,7 +933,7 @@ void Calendar::ImplDraw( sal_Bool bPaint )
     long        nDeltaY;
     long        nDayX;
     long        nDayY;
-    sal_uLong       nToday = Date().GetDate();
+    sal_uLong       nToday = Date( Date::SYSTEM ).GetDate();
     sal_uInt16      nDay;
     sal_uInt16      nMonth;
     sal_uInt16      nYear;
@@ -2590,7 +2591,7 @@ IMPL_LINK( CalendarField, ImplClickHdl, PushButton*, pBtn )
 
     if ( pBtn == mpTodayBtn )
     {
-        Date aToday;
+        Date aToday( Date::SYSTEM );
         if ( (aToday != GetDate()) || IsEmptyDate() )
         {
             SetDate( aToday );
@@ -2643,7 +2644,7 @@ sal_Bool CalendarField::ShowDropDown( sal_Bool bShow )
             if ( maDefaultDate.IsValidAndGregorian() )
                 aDate = maDefaultDate;
             else
-                aDate = Date();
+                aDate = Date( Date::SYSTEM );
         }
         if ( pCalendar->GetStyle() & (WB_RANGESELECT | WB_MULTISELECT) )
         {
diff --git a/svtools/source/control/taskstat.cxx b/svtools/source/control/taskstat.cxx
index 74110c6..20b731b 100644
--- a/svtools/source/control/taskstat.cxx
+++ b/svtools/source/control/taskstat.cxx
@@ -201,7 +201,7 @@ sal_Bool TaskStatusBar::ImplUpdateClock()
 {
     if ( mnFieldFlags & TASKSTATUSFIELD_CLOCK )
     {
-        Time aTime;
+        Time aTime( Time::SYSTEM );
         maTimer.SetTimeout( ((long)60000)-((aTime.GetSec()*1000)+(aTime.Get100Sec()*10)) );
         if ( (aTime.GetMin()  != maTime.GetMin()) ||
              (aTime.GetHour() != maTime.GetHour()) )
@@ -457,7 +457,7 @@ void TaskStatusBar::RequestHelp( const HelpEvent& rHEvt )
                 const LocaleDataWrapper& rLDW = aSL.GetLocaleData();
                 CalendarWrapper aCal( rLDW.getServiceFactory());
                 aCal.loadDefaultCalendar( rLDW.getLoadedLocale());
-                XubString aStr = rLDW.getLongDate( Date(), aCal );
+                XubString aStr = rLDW.getLongDate( Date( Date::SYSTEM), aCal );
                 if ( rHEvt.GetMode() & HELPMODE_BALLOON )
                     Help::ShowBalloon( this, aItemRect.Center(), aItemRect, aStr );
                 else
diff --git a/svx/inc/svx/galmisc.hxx b/svx/inc/svx/galmisc.hxx
index e6f6c8e..c7ed89c 100644
--- a/svx/inc/svx/galmisc.hxx
+++ b/svx/inc/svx/galmisc.hxx
@@ -57,6 +57,11 @@ struct ExchangeData
     String          aEditedTitle;
     Date            aThemeChangeDate;
     Time            aThemeChangeTime;
+
+    ExchangeData() :
+        aThemeChangeDate( Date::EMPTY ),
+        aThemeChangeTime( Time::EMPTY )
+        {}
 };
 
 enum SgaObjKind
diff --git a/svx/source/dialog/ctredlin.cxx b/svx/source/dialog/ctredlin.cxx
index 3d0c4ec..7494f32 100644
--- a/svx/source/dialog/ctredlin.cxx
+++ b/svx/source/dialog/ctredlin.cxx
@@ -65,6 +65,8 @@ static long nStaticTabs[]=
 #define CALC_DATE       3
 
 RedlinData::RedlinData()
+    :
+        aDateTime( DateTime::EMPTY )
 {
     bDisabled=sal_False;
     pData=NULL;
@@ -146,7 +148,11 @@ void SvLBoxColorString::Paint( const Point& rPos, SvLBox& rDev,
 //----------------------------------------------------------------------------
 
 SvxRedlinTable::SvxRedlinTable(SvxSimpleTableContainer& rParent,WinBits nBits)
-    : SvxSimpleTable(rParent,nBits)
+    : SvxSimpleTable(rParent,nBits),
+    aDaTiFirst( DateTime::EMPTY ),
+    aDaTiLast( DateTime::EMPTY ),
+    aDaTiFilterFirst( DateTime::EMPTY ),
+    aDaTiFilterLast( DateTime::EMPTY )
 {
     bAuthor=sal_False;
     bDate=sal_False;
@@ -158,7 +164,11 @@ SvxRedlinTable::SvxRedlinTable(SvxSimpleTableContainer& rParent,WinBits nBits)
 }
 
 SvxRedlinTable::SvxRedlinTable(SvxSimpleTableContainer& rParent,const ResId& rResId)
-    : SvxSimpleTable(rParent,rResId)
+    : SvxSimpleTable(rParent,rResId),
+    aDaTiFirst( DateTime::EMPTY ),
+    aDaTiLast( DateTime::EMPTY ),
+    aDaTiFilterFirst( DateTime::EMPTY ),
+    aDaTiFilterLast( DateTime::EMPTY )
 {
     bAuthor=sal_False;
     bDate=sal_False;
@@ -232,7 +242,7 @@ void SvxRedlinTable::SetCalcView(sal_Bool bFlag)
 
 void SvxRedlinTable::UpdateFilterTest()
 {
-    Date aDateMax;
+    Date aDateMax( Date::SYSTEM );
     sal_uInt16 nYEAR=aDateMax.GetYear()+100;
     aDateMax.SetYear(nYEAR);
     Date aDateMin(1,1,1989);
@@ -797,8 +807,8 @@ SvxTPFilter::SvxTPFilter( Window * pParent)
     RowEnableHdl(&aCbRange);
     RowEnableHdl(&aCbComment);
 
-    Date aDate;
-    Time aTime;
+    Date aDate( Date::SYSTEM );
+    Time aTime( Time::SYSTEM );
     aDfDate.SetDate(aDate);
     aTfDate.SetTime(aTime);
     aDfDate2.SetDate(aDate);
@@ -1177,8 +1187,8 @@ IMPL_LINK( SvxTPFilter, RowEnableHdl, CheckBox*, pCB )
 
 IMPL_LINK( SvxTPFilter, TimeHdl, ImageButton*,pIB )
 {
-    Date aDate;
-    Time aTime;
+    Date aDate( Date::SYSTEM );
+    Time aTime( Time::SYSTEM );
     if(pIB==&aIbClock)
     {
         aDfDate.SetDate(aDate);
@@ -1275,7 +1285,7 @@ void SvxTPFilter::Disable( bool bChild)
 IMPL_LINK( SvxTPFilter, ModifyDate, void*,pTF)
 {
 
-    Date aDate;
+    Date aDate( Date::SYSTEM );
     Time aTime(0);
     if(&aDfDate==pTF)
     {
diff --git a/svx/source/gallery2/galbrws1.cxx b/svx/source/gallery2/galbrws1.cxx
index af58c52..4c50608 100644
--- a/svx/source/gallery2/galbrws1.cxx
+++ b/svx/source/gallery2/galbrws1.cxx
@@ -236,7 +236,7 @@ void GalleryBrowser1::ImplFillExchangeData( const GalleryTheme* pThm, ExchangeDa
     {
         ::ucbhelper::Content aCnt( pThm->GetThmURL().GetMainURL( INetURLObject::NO_DECODE ), uno::Reference< ucb::XCommandEnvironment >() );
         util::DateTime  aDateTimeModified;
-        DateTime        aDateTime;
+        DateTime        aDateTime( DateTime::EMPTY );
 
         aCnt.getPropertyValue( OUString(RTL_CONSTASCII_USTRINGPARAM( "DateModified" )) ) >>= aDateTimeModified;
         ::utl::typeConvert( aDateTimeModified, aDateTime );
diff --git a/svx/source/svdraw/svdmodel.cxx b/svx/source/svdraw/svdmodel.cxx
index a5ef15c..3e8daa2 100644
--- a/svx/source/svdraw/svdmodel.cxx
+++ b/svx/source/svdraw/svdmodel.cxx
@@ -218,6 +218,7 @@ void SdrModel::ImpCtor(SfxItemPool* pPool, ::comphelper::IEmbeddedHelper* _pEmbe
 }
 
 SdrModel::SdrModel(SfxItemPool* pPool, ::comphelper::IEmbeddedHelper* pPers, sal_Bool bLoadRefCounts):
+    aReadDate( DateTime::EMPTY ),
     maMaPag(1024,32,32),
     maPages(1024,32,32)
 {
@@ -230,6 +231,7 @@ SdrModel::SdrModel(SfxItemPool* pPool, ::comphelper::IEmbeddedHelper* pPers, sal
 }
 
 SdrModel::SdrModel(const String& rPath, SfxItemPool* pPool, ::comphelper::IEmbeddedHelper* pPers, sal_Bool bLoadRefCounts):
+    aReadDate( DateTime::EMPTY ),
     maMaPag(1024,32,32),
     maPages(1024,32,32),
     aTablePath(rPath)
@@ -243,6 +245,7 @@ SdrModel::SdrModel(const String& rPath, SfxItemPool* pPool, ::comphelper::IEmbed
 }
 
 SdrModel::SdrModel(SfxItemPool* pPool, ::comphelper::IEmbeddedHelper* pPers, bool bUseExtColorTable, sal_Bool bLoadRefCounts):
+    aReadDate( DateTime::EMPTY ),
     maMaPag(1024,32,32),
     maPages(1024,32,32)
 {
@@ -255,6 +258,7 @@ SdrModel::SdrModel(SfxItemPool* pPool, ::comphelper::IEmbeddedHelper* pPers, boo
 }
 
 SdrModel::SdrModel(const String& rPath, SfxItemPool* pPool, ::comphelper::IEmbeddedHelper* pPers, bool bUseExtColorTable, sal_Bool bLoadRefCounts):
+    aReadDate( DateTime::EMPTY ),
     maMaPag(1024,32,32),
     maPages(1024,32,32),
     aTablePath(rPath)
@@ -270,6 +274,7 @@ SdrModel::SdrModel(const String& rPath, SfxItemPool* pPool, ::comphelper::IEmbed
 SdrModel::SdrModel(const SdrModel& /*rSrcModel*/):
     SfxBroadcaster(),
     tools::WeakBase< SdrModel >(),
+    aReadDate( DateTime::EMPTY ),
     maMaPag(1024,32,32),
     maPages(1024,32,32)
 {
diff --git a/svx/source/svdraw/svdotxln.cxx b/svx/source/svdraw/svdotxln.cxx
index 0704d1f..5b0afd8 100644
--- a/svx/source/svdraw/svdotxln.cxx
+++ b/svx/source/svdraw/svdotxln.cxx
@@ -115,6 +115,7 @@ TYPEINIT1(ImpSdrObjTextLinkUserData,SdrObjUserData);
 ImpSdrObjTextLinkUserData::ImpSdrObjTextLinkUserData(SdrTextObj* pObj1):
     SdrObjUserData(SdrInventor,SDRUSERDATA_OBJTEXTLINK,0),
     pObj(pObj1),
+    aFileDate0( DateTime::EMPTY ),
     pLink(NULL),
     eCharSet(RTL_TEXTENCODING_DONTKNOW)
 {
@@ -175,7 +176,7 @@ bool SdrTextObj::ReloadLinkedText( bool bForceLoad)
     if( pData )
     {
         ::ucbhelper::ContentBroker* pBroker = ::ucbhelper::ContentBroker::get();
-        DateTime                    aFileDT;
+        DateTime                    aFileDT( DateTime::EMPTY );
         sal_Bool                        bExists = sal_False, bLoad = sal_False;
 
         if( pBroker )
diff --git a/sw/source/core/doc/doccomp.cxx b/sw/source/core/doc/doccomp.cxx
index 41052a6..8f4f56d 100644
--- a/sw/source/core/doc/doccomp.cxx
+++ b/sw/source/core/doc/doccomp.cxx
@@ -1399,7 +1399,7 @@ void SwCompareData::SetRedlinesToDoc( sal_Bool bUseDocInfo )
 
     // get the Author / TimeStamp from the "other" document info
     sal_uInt16 nAuthor = rDoc.GetRedlineAuthor();
-    DateTime aTimeStamp;
+    DateTime aTimeStamp( DateTime::SYSTEM );
     SwDocShell *pDocShell(rDoc.GetDocShell());
     OSL_ENSURE(pDocShell, "no SwDocShell");
     if (pDocShell) {
diff --git a/sw/source/core/doc/docfld.cxx b/sw/source/core/doc/docfld.cxx
index 91268ac..019e160 100644
--- a/sw/source/core/doc/docfld.cxx
+++ b/sw/source/core/doc/docfld.cxx
@@ -1996,8 +1996,8 @@ void SwDoc::SetFixFields( bool bOnlyTimeDate, const DateTime* pNewDateTime )
     }
     else
     {
-        nDate = Date().GetDate();
-        nTime = Time().GetTime();
+        nDate = Date( Date::SYSTEM ).GetDate();
+        nTime = Time( Time::SYSTEM ).GetTime();
     }
 
     sal_uInt16 aTypes[5] = {
diff --git a/sw/source/core/doc/docglbl.cxx b/sw/source/core/doc/docglbl.cxx
index 531efd7..1be1ccf 100644
--- a/sw/source/core/doc/docglbl.cxx
+++ b/sw/source/core/doc/docglbl.cxx
@@ -244,7 +244,7 @@ bool SwDoc::SplitDoc( sal_uInt16 eDocType, const String& rPath, bool bOutline, c
     utl::TempFile aTemp(sLeading,&sExt,&sPath );
     aTemp.EnableKillingFile();
 
-    DateTime aTmplDate;
+    DateTime aTmplDate( DateTime::SYSTEM );
     {
         Time a2Min( 0 ); a2Min.SetMin( 2 );
         aTmplDate += a2Min;
diff --git a/sw/source/core/doc/docnum.cxx b/sw/source/core/doc/docnum.cxx
index 4eff3d9..d5a609a 100644
--- a/sw/source/core/doc/docnum.cxx
+++ b/sw/source/core/doc/docnum.cxx
@@ -2225,8 +2225,8 @@ String SwDoc::GetUniqueNumRuleName( const String* pChkStr, sal_Bool bAutoNum ) c
     String aName;
     if( bAutoNum )
     {
-        long n = Time().GetTime();
-        n += Date().GetDate();
+        long n = Time( Time::SYSTEM ).GetTime();
+        n += Date( Date::SYSTEM ).GetDate();
         aName = String::CreateFromInt32( n );
         if( pChkStr && !pChkStr->Len() )
             pChkStr = 0;
@@ -2611,8 +2611,8 @@ namespace listfunc
     {
         // #i92478#
         String aNewListId = String::CreateFromAscii( "list" );
-        sal_Int64 n = Time().GetTime();
-        n += Date().GetDate();
+        sal_Int64 n = Time( Time::SYSTEM ).GetTime();
+        n += Date( Date::SYSTEM ).GetDate();
         n += rand();
         // #i92478#
         aNewListId += String::CreateFromInt64( n );
diff --git a/sw/source/core/doc/docredln.cxx b/sw/source/core/doc/docredln.cxx
index ff42995..a175104 100644
--- a/sw/source/core/doc/docredln.cxx
+++ b/sw/source/core/doc/docredln.cxx
@@ -2987,7 +2987,9 @@ int SwRedlineExtraData_Format::operator == ( const SwRedlineExtraData& rCmp ) co
 }
 
 SwRedlineData::SwRedlineData( RedlineType_t eT, sal_uInt16 nAut )
-    : pNext( 0 ), pExtraData( 0 ), eType( eT ), nAuthor( nAut ), nSeqNo( 0 )
+    : pNext( 0 ), pExtraData( 0 ),
+    aStamp( DateTime::SYSTEM ),
+    eType( eT ), nAuthor( nAut ), nSeqNo( 0 )
 {
     aStamp.SetSec( 0 );
     aStamp.Set100Sec( 0 );
diff --git a/sw/source/core/fields/flddat.cxx b/sw/source/core/fields/flddat.cxx
index 86923a9..22cd105 100644
--- a/sw/source/core/fields/flddat.cxx
+++ b/sw/source/core/fields/flddat.cxx
@@ -69,7 +69,7 @@ SwDateTimeField::SwDateTimeField(SwDateTimeFieldType* pInitType, sal_uInt16 nSub
     }
     if (IsFixed())
     {
-        DateTime aDateTime;
+        DateTime aDateTime( DateTime::SYSTEM );
         SetDateTime(aDateTime);
     }
 }
@@ -80,7 +80,7 @@ String SwDateTimeField::Expand() const
 
     if (!(IsFixed()))
     {
-        DateTime aDateTime;
+        DateTime aDateTime( DateTime::SYSTEM );
         fVal = GetDateTime(GetDoc(), aDateTime);
     }
     else
@@ -148,7 +148,7 @@ double SwDateTimeField::GetValue() const
     if (IsFixed())
         return SwValueField::GetValue();
     else
-        return GetDateTime(GetDoc(), DateTime());
+        return GetDateTime(GetDoc(), DateTime( DateTime::SYSTEM ));
 }
 
 Date SwDateTimeField::GetDate(sal_Bool bUseOffset) const
@@ -248,7 +248,7 @@ bool SwDateTimeField::PutValue( const uno::Any& rVal, sal_uInt16 nWhichId )
             util::DateTime aDateTimeValue;
             if(!(rVal >>= aDateTimeValue))
                 return sal_False;
-            DateTime aDateTime;
+            DateTime aDateTime( DateTime::EMPTY );
             aDateTime.Set100Sec(aDateTimeValue.HundredthSeconds);
             aDateTime.SetSec(aDateTimeValue.Seconds);
             aDateTime.SetMin(aDateTimeValue.Minutes);
diff --git a/sw/source/core/swg/swblocks.cxx b/sw/source/core/swg/swblocks.cxx
index 95a45a1..de04be4 100644
--- a/sw/source/core/swg/swblocks.cxx
+++ b/sw/source/core/swg/swblocks.cxx
@@ -101,7 +101,10 @@ short SwImpBlocks::GetFileType( const String& rFile )
 
 
 SwImpBlocks::SwImpBlocks( const String& rFile, sal_Bool )
-    : aFile( rFile ), pDoc( 0 ), nCur( (sal_uInt16)-1 ),
+    : aFile( rFile ),
+    aDateModified( Date::EMPTY ),
+    aTimeModified( Time::EMPTY ),
+    pDoc( 0 ), nCur( (sal_uInt16)-1 ),
     bReadOnly( sal_True ), bInPutMuchBlocks( sal_False )
 {
     FStatHelper::GetModifiedDateTimeOfFile( rFile,
diff --git a/sw/source/core/unocore/unofield.cxx b/sw/source/core/unocore/unofield.cxx
index 92c7e1c..6b0ddc7 100644
--- a/sw/source/core/unocore/unofield.cxx
+++ b/sw/source/core/unocore/unofield.cxx
@@ -1049,6 +1049,7 @@ struct SwFieldProperties_Impl
     sal_Bool        bBool4;
 
     SwFieldProperties_Impl():
+        aDate( Date::EMPTY ),
         fDouble(0.),
         pDateTime(0),
         nSubType(0),
@@ -1231,7 +1232,7 @@ void SwXTextField::attachToRange(
             {
                 SwFieldType* pFldType = pDoc->GetSysFldType(RES_POSTITFLD);
 
-                DateTime aDateTime;
+                DateTime aDateTime( DateTime::EMPTY );
                 if (m_pProps->pDateTime)
                 {
                     aDateTime.SetYear(m_pProps->pDateTime->Year);
@@ -2233,7 +2234,7 @@ void SwXTextField::update(  ) throw (uno::RuntimeException)
         switch(pFld->Which())
         {
             case RES_DATETIMEFLD:
-            ((SwDateTimeField*)pFld)->SetDateTime( ::DateTime() );
+            ((SwDateTimeField*)pFld)->SetDateTime( ::DateTime( ::DateTime::SYSTEM ) );
             break;
 
             case RES_EXTUSERFLD:
diff --git a/sw/source/filter/basflt/shellio.cxx b/sw/source/filter/basflt/shellio.cxx
index 5afbe92..dc5c8a7 100644
--- a/sw/source/filter/basflt/shellio.cxx
+++ b/sw/source/filter/basflt/shellio.cxx
@@ -441,7 +441,11 @@ SwReader::SwReader( const uno::Reference < embed::XStorage > &rStg, const String
 }
 
 Reader::Reader()
-    : pTemplate(0), pStrm(0), pMedium(0), bInsertMode(0),
+    : pTemplate(0),
+    aDStamp( Date::EMPTY ),
+    aTStamp( Time::EMPTY ),
+    aChkDateTime( DateTime::EMPTY ),
+    pStrm(0), pMedium(0), bInsertMode(0),
     bTmplBrowseMode(0), bReadUTF8(0), bBlockMode(0), bOrganizerMode(0),
     bHasAskTemplateName(0), bIgnoreHTMLComments(0)
 {
@@ -473,15 +477,15 @@ SwDoc* Reader::GetTemplateDoc()
         INetURLObject aTDir( aTemplateNm );
         String aFileName = aTDir.GetMainURL( INetURLObject::NO_DECODE );
         OSL_ENSURE( !aTDir.HasError(), "No absolute path for template name!" );
-        DateTime aCurrDateTime;
+        DateTime aCurrDateTime( DateTime::SYSTEM );
         sal_Bool bLoad = sal_False;
 
         // Wenn das Template schon mal geladen wurde, nur einmal pro
         // Minute nachschauen, ob es geaendert wurde.
         if( !pTemplate || aCurrDateTime >= aChkDateTime )
         {
-            Date aTstDate;
-            Time aTstTime;
+            Date aTstDate( Date::EMPTY );
+            Time aTstTime( Time::EMPTY );
             if( FStatHelper::GetModifiedDateTimeOfFile(
                             aTDir.GetMainURL( INetURLObject::NO_DECODE ),
                             &aTstDate, &aTstTime ) &&
diff --git a/sw/source/filter/html/htmlfld.cxx b/sw/source/filter/html/htmlfld.cxx
index 71de0fe..1c28e7d 100644
--- a/sw/source/filter/html/htmlfld.cxx
+++ b/sw/source/filter/html/htmlfld.cxx
@@ -339,7 +339,7 @@ void SwHTMLParser::NewField()
     case RES_TIMEFLD:
         {
             sal_uLong nNumFmt = 0;
-            sal_uLong nTime = Time().GetTime(), nDate = Date().GetDate();
+            sal_uLong nTime = Time( Time::SYSTEM ).GetTime(), nDate = Date( Date::SYSTEM ).GetDate();
             sal_uInt16 nSub = 0;
             sal_Bool bValidFmt = sal_False;
             HTMLNumFmtTblEntry * pFmtTbl;
@@ -659,7 +659,7 @@ void SwHTMLParser::InsertComment( const String& rComment, const sal_Char *pTag )
 
     SwPostItField aPostItFld(
                     (SwPostItFieldType*)pDoc->GetSysFldType( RES_POSTITFLD ),
-                    aEmptyStr, aComment, DateTime() );
+                    aEmptyStr, aComment, DateTime( DateTime::SYSTEM ) );
     InsertAttr( SwFmtFld( aPostItFld ) );
 
     if( bMoveFwd )
diff --git a/sw/source/filter/html/swhtml.cxx b/sw/source/filter/html/swhtml.cxx
index b8ddf9d..3dc5337 100644
--- a/sw/source/filter/html/swhtml.cxx
+++ b/sw/source/filter/html/swhtml.cxx
@@ -5382,7 +5382,7 @@ void SwHTMLParser::ParseMoreMetaOptions()
 
     SwPostItField aPostItFld(
         (SwPostItFieldType*)pDoc->GetSysFldType( RES_POSTITFLD ),
-        aEmptyStr, sText, DateTime() );
+        aEmptyStr, sText, DateTime( DateTime::SYSTEM ) );
     SwFmtFld aFmtFld( aPostItFld );
     InsertAttr( aFmtFld );
 }
diff --git a/sw/source/filter/inc/fltshell.hxx b/sw/source/filter/inc/fltshell.hxx
index 909900e..0533799 100644
--- a/sw/source/filter/inc/fltshell.hxx
+++ b/sw/source/filter/inc/fltshell.hxx
@@ -232,7 +232,9 @@ public:
                  RedlineType_t   eTypePrev_    = nsRedlineType_t::REDLINE_INSERT,
                  sal_uInt16          nAutorNoPrev_ = USHRT_MAX,
                  const DateTime* pStampPrev_   = 0)
-        : SfxPoolItem(RES_FLTR_REDLINE), aStamp(rStamp_), eType(eType_),
+        : SfxPoolItem(RES_FLTR_REDLINE), aStamp(rStamp_),
+        aStampPrev( DateTime::EMPTY ),
+        eType(eType_),
         eTypePrev(eTypePrev_), nAutorNo(nAutorNo_), nAutorNoPrev(nAutorNoPrev_)
     {
             if( pStampPrev_ )
diff --git a/sw/source/filter/ww8/wrtw8sty.cxx b/sw/source/filter/ww8/wrtw8sty.cxx
index 1841e71..2207f37 100644
--- a/sw/source/filter/ww8/wrtw8sty.cxx
+++ b/sw/source/filter/ww8/wrtw8sty.cxx
@@ -1909,6 +1909,8 @@ void WW8_WrPlcFtnEdn::Append( WW8_CP nCp, const SwFmtFtn& rFtn )
 }
 
 WW8_Annotation::WW8_Annotation(const SwPostItField* pPostIt)
+    :
+        maDateTime( DateTime::EMPTY )
 {
     mpRichText = pPostIt->GetTextObject();
     if (!mpRichText)
@@ -1917,7 +1919,10 @@ WW8_Annotation::WW8_Annotation(const SwPostItField* pPostIt)
     maDateTime = DateTime(pPostIt->GetDate(), pPostIt->GetTime());
 }
 
-WW8_Annotation::WW8_Annotation(const SwRedlineData* pRedline) : mpRichText(0)
+WW8_Annotation::WW8_Annotation(const SwRedlineData* pRedline)
+    :
+        mpRichText(0),
+        maDateTime( DateTime::EMPTY )
 {
     msSimpleText = pRedline->GetComment();
     msOwner = SW_MOD()->GetRedlineAuthor(pRedline->GetAuthor());
diff --git a/sw/source/filter/xml/XMLRedlineImportHelper.cxx b/sw/source/filter/xml/XMLRedlineImportHelper.cxx
index 4745b00..49a3110 100644
--- a/sw/source/filter/xml/XMLRedlineImportHelper.cxx
+++ b/sw/source/filter/xml/XMLRedlineImportHelper.cxx
@@ -728,7 +728,7 @@ SwRedlineData* XMLRedlineImportHelper::ConvertRedline(
         pDoc->InsertRedlineAuthor( pRedlineInfo->sAuthor );
 
     // 2) util::DateTime -> DateTime
-    DateTime aDT;
+    DateTime aDT( DateTime::EMPTY );
     aDT.SetYear(    pRedlineInfo->aDateTime.Year );
     aDT.SetMonth(   pRedlineInfo->aDateTime.Month );
     aDT.SetDay(     pRedlineInfo->aDateTime.Day );
diff --git a/sw/source/ui/docvw/SidebarWin.cxx b/sw/source/ui/docvw/SidebarWin.cxx
index 311e5bd..da0f888 100644
--- a/sw/source/ui/docvw/SidebarWin.cxx
+++ b/sw/source/ui/docvw/SidebarWin.cxx
@@ -406,12 +406,13 @@ void SwSidebarWin::CheckMetaText()
         mpMetadataAuthor->SetText(sMeta);
     }
 
+    Date aSysDate( Date::SYSTEM );
     Date aDate = GetDate();
-    if (aDate==Date())
+    if (aDate==aSysDate)
     {
         sMeta = String(SW_RES(STR_POSTIT_TODAY));
     }
-    else if (aDate == Date(Date()-1))
+    else if (aDate == Date(aSysDate-1))
     {
         sMeta = String(SW_RES(STR_POSTIT_YESTERDAY));
     }
diff --git a/sw/source/ui/docvw/srcedtw.cxx b/sw/source/ui/docvw/srcedtw.cxx
index 7b42514..ec30d62 100644
--- a/sw/source/ui/docvw/srcedtw.cxx
+++ b/sw/source/ui/docvw/srcedtw.cxx
@@ -538,7 +538,7 @@ IMPL_LINK(SwSrcEditWindow, ScrollHdl, ScrollBar*, pScroll)
 
 IMPL_LINK( SwSrcEditWindow, SyntaxTimerHdl, Timer *, pTimer )
 {
-    Time aSyntaxCheckStart;
+    Time aSyntaxCheckStart( Time::SYSTEM );
     SAL_WARN_IF(pTextView == 0, "sw", "No View yet, but syntax highlighting?!");
 
     bHighlighting = sal_True;
@@ -562,7 +562,7 @@ IMPL_LINK( SwSrcEditWindow, SyntaxTimerHdl, Timer *, pTimer )
                 nCount++;
                 if(!aSyntaxLineTable.Count())
                     break;
-                if((Time().GetTime() - aSyntaxCheckStart.GetTime()) > MAX_HIGHLIGHTTIME )
+                if((Time( Time::SYSTEM ).GetTime() - aSyntaxCheckStart.GetTime()) > MAX_HIGHLIGHTTIME )
                 {
                     pTimer->SetTimeout( 2 * SYNTAX_HIGHLIGHT_TIMEOUT );
                     break;
@@ -580,7 +580,7 @@ IMPL_LINK( SwSrcEditWindow, SyntaxTimerHdl, Timer *, pTimer )
         p = aSyntaxLineTable.Next();
         aSyntaxLineTable.Remove(nCurKey);
         nCount ++;
-        if(Time().GetTime() - aSyntaxCheckStart.GetTime() > MAX_HIGHLIGHTTIME)
+        if(Time( Time::SYSTEM ).GetTime() - aSyntaxCheckStart.GetTime() > MAX_HIGHLIGHTTIME)
         {
             pTimer->SetTimeout( 2 * SYNTAX_HIGHLIGHT_TIMEOUT );
             break;
diff --git a/sw/source/ui/fldui/fldmgr.cxx b/sw/source/ui/fldui/fldmgr.cxx
index 750b2c0..e67d170 100644
--- a/sw/source/ui/fldui/fldmgr.cxx
+++ b/sw/source/ui/fldui/fldmgr.cxx
@@ -869,7 +869,7 @@ sal_Bool SwFldMgr::InsertFld(  const SwInsertFld_Data& rData )
         case TYP_POSTITFLD:
         {
             SwPostItFieldType* pType = (SwPostItFieldType*)pCurShell->GetFldType(0, RES_POSTITFLD);
-            pFld = new SwPostItField(pType, rData.sPar1, rData.sPar2, DateTime());
+            pFld = new SwPostItField(pType, rData.sPar1, rData.sPar2, DateTime( DateTime::SYSTEM ));
             break;
         }
         case TYP_SCRIPTFLD:
@@ -1716,12 +1716,12 @@ sal_uLong SwFldMgr::GetDefaultFormat(sal_uInt16 nTypeId, sal_Bool bIsText, SvNum
         case TYP_TIMEFLD:

... etc. - the rest is truncated


More information about the Libreoffice-commits mailing list