created an attachment (id=169274)
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
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.