You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@freemarker.apache.org by "Erkki Lindpere (Jira)" <ji...@apache.org> on 2020/11/26 15:55:00 UTC

[jira] [Commented] (FREEMARKER-166) timestamp seems to be a reserved word

    [ https://issues.apache.org/jira/browse/FREEMARKER-166?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17239321#comment-17239321 ] 

Erkki Lindpere commented on FREEMARKER-166:
-------------------------------------------

I'm sorry, this is a false report, it seems Maven has resolved the timestamp variable.

> timestamp seems to be a reserved word
> -------------------------------------
>
>                 Key: FREEMARKER-166
>                 URL: https://issues.apache.org/jira/browse/FREEMARKER-166
>             Project: Apache Freemarker
>          Issue Type: Bug
>          Components: engine
>    Affects Versions: 2.3.30
>            Reporter: Erkki Lindpere
>            Priority: Major
>
> I have a template which includes this:
> {code:java}
> ${timestamp}
> {code}
> The timestamp variable is provided in the map of parameters as a pre-formatted datetime.
> Instead, in the resolved template I'm seeing either emptyness or a numeric unix timestamp (in unit test it seems empty). Is this a reserved word? It's not documented.
> When I changed the name of "timestamp" to "eventDateTime" then everything works as expected, I see my pre-formatted timestamp in the output.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)