summaryrefslogtreecommitdiff
path: root/reportbuilder
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2013-07-23 19:24:54 +0200
committerLionel Elie Mamane <lionel@mamane.lu>2013-07-23 19:25:42 +0200
commitc4ed35820178c6c990311e8fb48ea91b39c05988 (patch)
tree0310a4dbe530c4e58d0a297d124c5244670c18af /reportbuilder
parentcab9b82fb31217223511afcea88ad7446999492b (diff)
a date is a date, not a float
Change-Id: Id9beab6a9cd9b7fa15ce0699b6eeb8a1e32448fe
Diffstat (limited to 'reportbuilder')
-rw-r--r--reportbuilder/java/org/libreoffice/report/pentaho/layoutprocessor/FormatValueUtility.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/reportbuilder/java/org/libreoffice/report/pentaho/layoutprocessor/FormatValueUtility.java b/reportbuilder/java/org/libreoffice/report/pentaho/layoutprocessor/FormatValueUtility.java
index d4c86c6317fe..eca94e618037 100644
--- a/reportbuilder/java/org/libreoffice/report/pentaho/layoutprocessor/FormatValueUtility.java
+++ b/reportbuilder/java/org/libreoffice/report/pentaho/layoutprocessor/FormatValueUtility.java
@@ -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)
{