Passing event start to custom function
-
I’ve written my own theme for Ai1EC and have also hooked up a Twig function to determine if it is too late for someone to register for an event.
If I simply do
{{ event.get('start') }}
fromevent-single.twig
, it prints a timestamp, exactly what I need. However, if I pass that to my function like so:{% if expired(event.get('start')) %}
and print the argument from the function, I end up with an Ai1ec_Date_Time object. How can I pass the timestamp I’m looking for here?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Passing event start to custom function’ is closed to new replies.