summaryrefslogtreecommitdiff
path: root/tools/source/datetime/ttime.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'tools/source/datetime/ttime.cxx')
-rw-r--r--tools/source/datetime/ttime.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/source/datetime/ttime.cxx b/tools/source/datetime/ttime.cxx
index 9f1241cfd76b..8b27d1ffa72d 100644
--- a/tools/source/datetime/ttime.cxx
+++ b/tools/source/datetime/ttime.cxx
@@ -343,7 +343,7 @@ Time Time::GetUTCOffset()
nTempTime += aTimeZone.StandardBias;
else if ( nTimeZoneRet == TIME_ZONE_ID_DAYLIGHT )
nTempTime += aTimeZone.DaylightBias;
- Time aTime( 0, (sal_uInt16)Abs( nTempTime ) );
+ Time aTime( 0, (sal_uInt16)abs( nTempTime ) );
if ( nTempTime > 0 )
aTime = -aTime;
return aTime;
@@ -381,7 +381,7 @@ Time Time::GetUTCOffset()
nCacheSecOffset = (nLocalTime-nUTC) / 60;
}
- nTempTime = (short)Abs( nCacheSecOffset );
+ nTempTime = abs( nCacheSecOffset );
Time aTime( 0, (sal_uInt16)nTempTime );
if ( nCacheSecOffset < 0 )
aTime = -aTime;