final String dateValue = DataTypeUtil.dateToXmlFormat( (Date) constantValue, this.timeZone );
attributes.put( XMLConstants.Office.DATE_VALUE, dateValue );
}
else if (constantValue instanceof LocalDate) {
attributes.put( XMLConstants.Office.VALUE_TYPE, ValueTypes.DATE );
final LocalDate localDate = (LocalDate) constantValue;
final Date date = RuntimeDouble_v2.dateFromNum( localDate.doubleValue(), DataTypeUtil.GMT_TIME_ZONE, ComputationMode.OPEN_OFFICE_CALC );
final String dateValue = DataTypeUtil.dateToXmlFormat( date, DataTypeUtil.GMT_TIME_ZONE );
attributes.put( XMLConstants.Office.DATE_VALUE, dateValue );
}
else if (constantValue instanceof Duration) {
attributes.put( XMLConstants.Office.VALUE_TYPE, ValueTypes.TIME );