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.

Bug 97840 - need customize the format of __DATE__, __TIME__ macros
Summary: need customize the format of __DATE__, __TIME__ macros
Status: RESOLVED DUPLICATE of bug 13250
Alias: None
Product: editor
Classification: Unclassified
Component: Macros (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-14 15:13 UTC by pzgyuanf
Modified: 2007-11-05 13:40 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pzgyuanf 2007-03-14 15:13:13 UTC
The default Template of below file header always generate 
the data format according to the current Locale and no way supplied to change it.
(e.g. ISO format)

/*
 * __NAME__.java
 *
 * Created on __DATE__, __TIME__
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

Please think about a team spanning east and west hemishere on the earth, then
you can image the encounter I currently placed in.

And I think NB team will jump at it as usually.

thanks.

-p
Comment 1 Jan Pokorsky 2007-03-14 19:26:17 UTC
We are going to migrate templates to the Freemarker template engine in nb 6.0.
This will permit you to customize date and time format on your own. See
http://freemarker.sourceforge.net/docs/ref_directive_setting.html and
http://freemarker.sourceforge.net/docs/ref_builtins_date.html#ref_builtin_string_for_date

*** This issue has been marked as a duplicate of 13250 ***