| Summary: | [Regression]<VALUE-OF format="Long Date"> returns wrong result | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Tianli Zhang <tzhang> | ||||
| Component: | BIRT | Assignee: | JingwenShen <jingwen.shen> | ||||
| Status: | CLOSED INVALID | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | hustlg, wyan | ||||
| Version: | 2.6.0 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
the long date applies to the date time value. The "2009-04-21" is not a date time value, it is a string. If it is not a valid Date time value, we should not append "Long Date" behind original value. Reopen the bug, if we don't format that value we should output original value 2009-04-23 but not 2009-04-23Long Date If "2009-04-23" is not a valid date object, "Long Date" should be a string format pattern. "2009-04-23Long Date" is expected result I don't think 2009-04-23Long Date is a user expected result. Another question: Can we try to convert "2009-04-23" to a date time value? Because the format works for a date item which dataType is date and value is "2009-04-23" In this design, No information imply "2009-04-23" is a date object. User should use new Date() to create a date object. set to invalid. User should use <VALUE-OF format='Long Date'>new Date("2009/04/21")</VALUE-OF> to get expected result. Verified.
|
Created attachment 169274 [details] report design Description: [Regression]<VALUE-OF format="Long Date"> returns wrong result Build number: 2.6.0.v20100520-0630 Steps to reproduce: 1, New a HTML Text 2, Input <VALUE-OF format="Long Date">"2009-04-23"</VALUE-OF> 3, Preview the text Expected result: Show date in corresponding date. Actual result: The result is: 2009-04-23Long Date