Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 313656 - [Regression]<VALUE-OF format="Long Date"> returns wrong result
Summary: [Regression]<VALUE-OF format="Long Date"> returns wrong result
Status: CLOSED INVALID
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 2.6.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JingwenShen CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-20 02:55 EDT by Tianli Zhang CLA
Modified: 2010-05-20 05:49 EDT (History)
2 users (show)

See Also:


Attachments
report design (2.86 KB, application/octet-stream)
2010-05-20 02:55 EDT, Tianli Zhang CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tianli Zhang CLA 2010-05-20 02:55:05 EDT
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
Comment 1 Wei Yan CLA 2010-05-20 03:57:02 EDT
the long date applies to the date time value. The "2009-04-21" is not a date time value, it is a string.
Comment 2 Tianli Zhang CLA 2010-05-20 04:39:38 EDT
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
Comment 3 Gang Liu CLA 2010-05-20 04:47:36 EDT
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
Comment 4 Tianli Zhang CLA 2010-05-20 04:50:08 EDT
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"
Comment 5 Gang Liu CLA 2010-05-20 05:38:44 EDT
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.
Comment 6 Tianli Zhang CLA 2010-05-20 05:49:49 EDT
User should use <VALUE-OF format='Long Date'>new Date("2009/04/21")</VALUE-OF> to get expected result. Verified.