This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Date object in Freemarker is String and not a Date object | ||
---|---|---|---|
Product: | platform | Reporter: | Chowarmaan |
Component: | Data Systems | Assignee: | Jaroslav Tulach <jtulach> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | apireviews, jtulach |
Priority: | P3 | Keywords: | API_REVIEW_FAST |
Version: | 6.x | ||
Hardware: | PC | ||
OS: | Windows 7 x64 | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | Introducing "dateTime" variable of type java.util.Date |
Description
Chowarmaan
2010-08-25 13:30:39 UTC
I am slightly afraid to just change the type. But I may add a "time" variable that would be of type Date. What about a new DateTime type or something, which might be a little more clear than your Time, as I believe Time should also be a Java Time object? Created attachment 101912 [details]
Introducing "dateTime" variable of type java.util.Date
Actually both "time" and "date" variables are already defined as strings. Thus the patch introduces new "dateTime". I'll integrate tomorrow, unless there are objections. core-main#70b00b618bf4 Integrated into 'main-golden', will be available in build *201009090000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/70b00b618bf4 User: Jaroslav Tulach <jtulach@netbeans.org> Log: #189843: Introducing 'dateTime' variable for all templating engines creating from DataObject templates |