summaryrefslogtreecommitdiff
path: root/forms/source/xforms/convert.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'forms/source/xforms/convert.cxx')
-rw-r--r--forms/source/xforms/convert.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/forms/source/xforms/convert.cxx b/forms/source/xforms/convert.cxx
index a89ef2bedf7d..651ecc1f89b2 100644
--- a/forms/source/xforms/convert.cxx
+++ b/forms/source/xforms/convert.cxx
@@ -338,7 +338,7 @@ namespace
// ------------------------------------------------------------------------
UNOTime lcl_toUNOTime( const OUString& rString )
{
- UNOTime aTime( 0, 0, 0, 0 );
+ UNOTime aTime;
bool bWellformed = ISO8601parseTime(rString, aTime);
@@ -362,7 +362,7 @@ namespace
// all okay?
if ( !bWellformed )
- return UNOTime( 0, 0, 0, 0 );
+ return UNOTime();
return aTime;
}
@@ -382,7 +382,8 @@ namespace
UNODate aDate( aDateTime.Day, aDateTime.Month, aDateTime.Year );
OUString sDate = lcl_toXSD_UNODate_typed( aDate );
- UNOTime aTime( aDateTime.NanoSeconds, aDateTime.Seconds, aDateTime.Minutes, aDateTime.Hours );
+ UNOTime const aTime( aDateTime.NanoSeconds, aDateTime.Seconds,
+ aDateTime.Minutes, aDateTime.Hours, aDateTime.IsUTC);
OUString sTime = lcl_toXSD_UNOTime_typed( aTime );
OUStringBuffer sInfo;
@@ -405,7 +406,6 @@ namespace
if ( nDateTimeSep == -1 )
{ // no time part
aDate = lcl_toUNODate( rString );
- aTime = UNOTime( 0, 0, 0, 0 );
}
else
{
@@ -414,7 +414,7 @@ namespace
}
UNODateTime aDateTime(
aTime.NanoSeconds, aTime.Seconds, aTime.Minutes, aTime.Hours,
- aDate.Day, aDate.Month, aDate.Year
+ aDate.Day, aDate.Month, aDate.Year, aTime.IsUTC
);
return makeAny( aDateTime );
}