One last question and sorry to be such a pain.
It’s already working, but you’re absolutely right, I should convert the time to UNIx timestamp, because the time math seems erroneous.
I also did a final change to the if statement because the snippet tag I was using wasn’t valid.
When I place the following snippet and TV calls on the document without the if statement,
[[CurrentDate]] // [[*EventStartDate]]
Only the EventStartDate TV is returned: // 2010-10-08 09:00:00
The CurrentDate snippet doesn’t seem to be outputting anything.
Here’s the snippet’s code:
And here’s the modified if statement with valid tags:
<div class="
[[!If?
&subject=`[[CurrentDate]]`
&operator=`LT`
&operand=`[[+tv.EventEndDate:strtotime]]`
&then=`event_pending`
&else=`event_past`
]]
"
</div>
If I can get this part working, I should be ok converting the date to a unix timestamp.
Thanks again for all your help.