diff --git a/oox/source/core/xmlfilterbase.cxx b/oox/source/core/xmlfilterbase.cxx index 4cd7665be98c..fe2055e6eda2 100644 --- a/oox/source/core/xmlfilterbase.cxx +++ b/oox/source/core/xmlfilterbase.cxx @@ -482,12 +482,9 @@ writeElement( FSHelperPtr pDoc, sal_Int32 nXmlElement, const util::DateTime& rTi FSEND ); char pStr[200]; - // FIXME: my guess is that precision greater than millisecond in undesirable - // (forbidden by the standard???) - snprintf( pStr, sizeof( pStr ), "%d-%02d-%02dT%02d:%02d:%02d.%09" SAL_PRIuUINT32 "Z", + snprintf( pStr, sizeof( pStr ), "%d-%02d-%02dT%02d:%02d:%02dZ", rTime.Year, rTime.Month, rTime.Day, - rTime.Hours, rTime.Minutes, rTime.Seconds, - rTime.NanoSeconds); + rTime.Hours, rTime.Minutes, rTime.Seconds ); pDoc->write( pStr );