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

Summary: need customize the format of __DATE__, __TIME__ macros
Product: editor Reporter: pzgyuanf <pzgyuanf>
Component: MacrosAssignee: issues@editor <issues>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

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 ***