From fbd11a2a940230f43f42defda57dbf852f83c627 Mon Sep 17 00:00:00 2001 From: Lionel Elie Mamane Date: Tue, 23 Apr 2013 20:09:47 +0200 Subject: [PATCH] fixup nanosecond precision Change-Id: Id62d3b994ece9cdf3b5f085e94f612cf62fc906b --- oox/source/dump/dumperbase.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oox/source/dump/dumperbase.cxx b/oox/source/dump/dumperbase.cxx index accc59356390..6f1c744fc1bb 100644 --- a/oox/source/dump/dumperbase.cxx +++ b/oox/source/dump/dumperbase.cxx @@ -2295,7 +2295,7 @@ util::DateTime InputObjectBase::dumpFileTime( const String& rName ) aDateTime.Seconds = static_cast< sal_uInt16 >( nTimeInDay % ::Time::secondPerMinute ); nTimeInDay /= ::Time::secondPerMinute; // minutes - aDateTime.Minutes = static_cast< sal_uInt16 >( nTimeInDay ::Time::minutePerHour ); + aDateTime.Minutes = static_cast< sal_uInt16 >( nTimeInDay % ::Time::minutePerHour ); nTimeInDay /= ::Time::minutePerHour; // hours aDateTime.Hours = static_cast< sal_uInt16 >( nTimeInDay );