summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpshi2012-01-11 02:32:58 (EST)
committer mwu2012-01-11 02:32:58 (EST)
commitcaa1560989c4ead93e94664ea2199fdd21104c93 (patch)
tree448f97124e5835bf9b0e1ac1f7ed474d0d6fa3f6
parent667e9ab055f3984d137b10b0b612b372fdda43bc (diff)
downloadorg.eclipse.birt-caa1560989c4ead93e94664ea2199fdd21104c93.zip
org.eclipse.birt-caa1560989c4ead93e94664ea2199fdd21104c93.tar.gz
org.eclipse.birt-caa1560989c4ead93e94664ea2199fdd21104c93.tar.bz2
fix ted 46554, set day of month to 1 before setting month
-rw-r--r--data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/olap/data/impl/aggregation/function/QuarterToDateFunction.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/olap/data/impl/aggregation/function/QuarterToDateFunction.java b/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/olap/data/impl/aggregation/function/QuarterToDateFunction.java
index 83fbe60..ff2659d 100644
--- a/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/olap/data/impl/aggregation/function/QuarterToDateFunction.java
+++ b/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/olap/data/impl/aggregation/function/QuarterToDateFunction.java
@@ -51,6 +51,7 @@ public class QuarterToDateFunction extends AbstractMDX implements IPeriodsFuncti
TimeMember newMember = null;
for ( int i = startMonth; i <= month; i++ )
{
+ cal.set( Calendar.DAY_OF_MONTH, 1);
cal.set( Calendar.MONTH, i-1 );
int[] newValues = getValueFromCal( cal,levels);
newMember = new TimeMember(newValues,levels);