summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorOcke.Janssen@oracle.com <Ocke.Janssen@oracle.com>2011-12-06 01:54:18 +0100
committerThorsten Behrens <tbehrens@suse.com>2011-12-06 09:39:10 +0100
commit909bf6e983d62ae2674c67067ee3e81b74bb8b53 (patch)
tree71369d99d6f058cc2dcc758fd68840c9b5135e6b /sd
parenta43400917e635a1b394b1eb4b53c8e709032e52d (diff)
impress210: #i106378# use datetime to get current date
# HG changeset patch # User Ocke.Janssen@oracle.com # Date 1297761051 -3600 # Node ID 3df655ccd7e3966c5c22df761981dde35b5e0059 # Parent 227bb8fe599b58e849c1f19f2233d2c1b0b767ad impress210: #i106378# use datetime to get current date
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/annotations/annotationmanager.cxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/sd/source/ui/annotations/annotationmanager.cxx b/sd/source/ui/annotations/annotationmanager.cxx
index fdc9655b3406..52e71c0e1a8d 100644
--- a/sd/source/ui/annotations/annotationmanager.cxx
+++ b/sd/source/ui/annotations/annotationmanager.cxx
@@ -47,6 +47,8 @@
#include <unotools/syslocale.hxx>
#include <unotools/saveopt.hxx>
+#include <tools/datetime.hxx>
+
#include <sfx2/imagemgr.hxx>
#include <sfx2/viewfrm.hxx>
#include <sfx2/bindings.hxx>
@@ -151,11 +153,8 @@ static SfxDispatcher* getDispatcher( ViewShellBase& rBase )
com::sun::star::util::DateTime getCurrentDateTime()
{
- TimeValue osltime;
- osl_getSystemTime( &osltime );
- oslDateTime osldt;
- osl_getDateTimeFromTimeValue( &osltime, &osldt );
- return com::sun::star::util::DateTime( 0, osldt.Seconds, osldt.Minutes, osldt.Hours, osldt.Day, osldt.Month, osldt.Year );
+ DateTime aCurrentDate;
+ return com::sun::star::util::DateTime( 0, aCurrentDate.GetSec(), aCurrentDate.GetMin(), aCurrentDate.GetHour(), aCurrentDate.GetDay(), aCurrentDate.GetMonth(), aCurrentDate.GetYear() );
}
OUString getAnnotationDateTimeString( const Reference< XAnnotation >& xAnnotation )