[ 
https://issues.apache.org/jira/browse/JSPWIKI-460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12661076#action_12661076
 ] 

NicolaFischer commented on JSPWIKI-460:
---------------------------------------

Thank you for your feedback. 

My purpose was to create a wikivariable that is flexible enough for users to 
define their own dateformat in wikipages and wikiforms.

The problem is, that we have users that need the date like 24.12.2008 other 
like 20081224 and others like 081224. 

In this case I (as the wikiadmin) would have to create 3 wikivariables and 
restart the server.

Lowercase is ok for me as my code should ignore CamelCase totally.

How does SET works? Seems to me it only processes constant content.

I tested:
[{SET myvar1='[{CurrentTimePlugin format='yyyy.MM.dd G \'at\' hh:mm:ss z'}]'}]

Show myvar1: [{$myvar1}]

> Add current time stamp to WikiVariables
> ---------------------------------------
>
>                 Key: JSPWIKI-460
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-460
>             Project: JSPWiki
>          Issue Type: Improvement
>            Reporter: NicolaFischer
>            Assignee: Harry Metske
>            Priority: Minor
>             Fix For: 3.0
>
>         Attachments: patch.txt
>
>
> Hi,
> i would like to add a current time stamp to the wikivariables to use it in 
> different plugins (f.e Formhandler).
> Input:
> Call with [{$identifier=time format}]
> f.e. [{$timestamp=yyyyMMdd}]
> Output:
> 20081219
> Explanation:
> 1. "timestamp" as identifier for the variable
> 2. after the "=" come the "time format". (Examples: yy-MM-dd hh:mm, 
> yyyy.MM.dd)
> Exception: if the "time format" is null or wrong, a message appears.
> The changes would be made in the VariablesManager.java. I have the code ready 
> and tested.
> Question: How can I achieve Commitrights?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to