From c32a5a3b8e2e3a49ac9f1fd3f2872b00612676b7 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sun, 11 Jan 2015 13:35:38 +0200 Subject: simplify Date/Time/DateTime conversion code add constructors to Date/DateTime/Time, that take the css::util counterparts, to simplify code converting between these type Change-Id: I4b03da02c63f65b6ec18cb4d6ecc3859bdef1ff7 Reviewed-on: https://gerrit.libreoffice.org/13855 Tested-by: Jenkins Reviewed-by: Eike Rathke --- sfx2/source/appl/sfxpicklist.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'sfx2/source/appl') diff --git a/sfx2/source/appl/sfxpicklist.cxx b/sfx2/source/appl/sfxpicklist.cxx index 1c2cf0aac38e..8e8452ea3b49 100644 --- a/sfx2/source/appl/sfxpicklist.cxx +++ b/sfx2/source/appl/sfxpicklist.cxx @@ -395,10 +395,7 @@ void SfxPickList::Notify( SfxBroadcaster&, const SfxHint& rHint ) if (xDocProps.is()) { xDocProps->setAuthor( SvtUserOptions().GetFullName() ); ::DateTime now( ::DateTime::SYSTEM ); - xDocProps->setCreationDate( util::DateTime( - now.GetNanoSec(), now.GetSec(), now.GetMin(), - now.GetHour(), now.GetDay(), now.GetMonth(), - now.GetYear(), false) ); + xDocProps->setCreationDate( now.GetUNODateTime() ); } if ( bAllowModif ) -- cgit