raintpl3 icon indicating copy to clipboard operation
raintpl3 copied to clipboard

Parsing timestamps has become extremely difficult...

Open Xesau opened this issue 10 years ago • 2 comments

RainTPL 2 parsed {'d-m-Y'|date:$timestamp}. This is a simple workaround for date ($format, $timestamp), as RainTPL modifiers always uses the initial value as first method argument.

Now, RainTPL 3 does not parse these expressions at all, just only when there is a $ right after the { character.

Can you please re-add the expression given above? Thanks in advance.

Xesau avatar Dec 31 '14 20:12 Xesau

We can as long as it won't break any back compatibility. I'll check to see if possible.

On Wed, Dec 31, 2014 at 3:22 PM, Xesau [email protected] wrote:

RainTPL 2 parsed {'d-m-Y'|date:$timestamp}. This is a simple workaround for date ($format, $timestamp), as RainTPL modifiers always uses the initial value as first method argument.

Now, RainTPL 3 does not parse these expressions at all, just only when there is a $ right after the { character.

Can you please re-add the expression given above? Thanks in advance.

— Reply to this email directly or view it on GitHub https://github.com/rainphp/raintpl3/issues/167.

feulf avatar Jan 02 '15 07:01 feulf

Nevermind, I found a better way of doing this:

{function="date ('d-m-Y', $timestamp)"}

Thanks anyways.

Xesau avatar Jan 19 '15 09:01 Xesau