Share » Forums » Setup & design » Adding seconds to timestamp, should...

Adding seconds to timestamp, should be easy?

Adding seconds to timestamp, should be easy?

Friday 24 October 2003 4:17:51 am - 2 replies

Modified on Friday 24 October 2003 4:22:55 am by Valentin Svelland

Author Message

Bård Farstad

Friday 24 October 2003 4:22:41 am

You need to use the sum operator.

http://ez.no/developer/ez_publish_3/documentation/development/libraries/ez_template/operators/arithmetics

However there is a bug with the sum operator which is beeing fixed now. It currently only works on arrays.

You should do:
{sum($node.object.published,21600)|l10n( datetime )}

But sum is broken in trunk, it will be fixed very soon.
--bård

Documentation: http://ez.no/doc

Valentin Svelland

Friday 24 October 2003 4:25:53 am

Ok, I already tried with sum this afternoon but your reply explains why that wouldn't work. :D

However I'm not quite sure how to download updates through "the trunk"... Will there be a patch?

Hmm... just started to read these articles once more (under). I might figure it out, but do you know which file I need to download to get the sum-operator right?

USEFUL LINKS ON EZ.NO
http://www.ez.no/developer/ez_publish_3/documentation/incoming/ez_publish_development_cycle
http://www.ez.no/developer/ez_publish_3/documentation/configuration/installation/manual/getting_the_latest_ez_publish_source
http://pubsvn.ez.no/nextgen/trunk/

Also found this:

---- Additional comment by Jan Borsodi (24/10/2003 1:24 pm) ----

In 3.2 the sum operator was defined twice causing quite some problems.
This is now fixed in revision 3783 (3.3).
The sum operator now accepts input value as array as well as parameters.
The sub operator was also fixed to work in the same way.

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu