Project: Birt
Bug 115777 Map rule params.p1(default value new Date("1/1/2000")) equal to new Date("1/1/2000") doesn't work.
Reported: 2005-11-10 03:41:20 | Status: closed fixed

Description: Map rule params.p1(default value new Date("1/1/2000")) equal to new Date ("1/1/2000") doesn't work. Steps to reproduce: 1.Insert a data item with content "my data" and new a report parameter, datetime type with default value new Date("1/1/2000)" 2. New a style, add a map rule with params.p1(default value new Date ("1/1/2000")) equal to new Date("1/1/2000"), display value is "my date" 3. Save and preview Expected result: my date Actual result: my data

Files changed in fix:
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/content/IDataContent.java engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/content/impl/DataContent.java engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/data/dte/DteDataEngine.java engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/DataItemExecutor.java engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/StyledItemExecutor.java