History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-17379
Type: Usability Problem Usability Problem
Status: Open Open
Assignee: Unassigned
Reporter: Alexander Strotzky
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

Date/time variables in File Templates includes should be prefixed by zero if < 10

Created: 12 Mar 08 15:18   Updated: 14 Mar 08 13:53
Component/s: IDE Configuration

Build: 7,744
Severity: Medium


 Description  « Hide
That is, add the digit 0 in front of them if they are less than 10.
I am referring to the following variables:
${DAY}
${MONTH}
${HOUR}
${MINUTE}

The following:

${DAY}.${MONTH}.${YEAR} ${HOUR}:${MINUTE}

is now expaded like this:

1.3.2008 9:7

when in fact it would be more usefull like this:

01.03.2008 09:07


 All   Comments   Work Log   Change History      Sort Order:
Bas Leijdekkers - 14 Mar 08 13:53
A workaround is to use a construct like this in your file template: #if($DAY.length()<2)0${DAY}#else${DAY}#end