a date is a date, not a float

Change-Id: Id9beab6a9cd9b7fa15ce0699b6eeb8a1e32448fe
This commit is contained in:
Lionel Elie Mamane
2013-07-23 19:24:54 +02:00
parent cab9b82fb3
commit c4ed358201

View File

@@ -84,9 +84,9 @@ public class FormatValueUtility
}
else if (value instanceof Date)
{
variableSection.setAttribute(OfficeNamespaces.OFFICE_NS, VALUE_TYPE, "float");
ret = HSSFDateUtil.getExcelDate((Date) value).toString();
variableSection.setAttribute(OfficeNamespaces.OFFICE_NS, VALUE, ret);
variableSection.setAttribute(OfficeNamespaces.OFFICE_NS, VALUE_TYPE, "date");
ret = formatDate((Date) value);
variableSection.setAttribute(OfficeNamespaces.OFFICE_NS, "date-value", ret);
}
else if (value instanceof Number)
{