Forums / Developer / More date sorting / Comment44709

Author Topic

Kristof Coomans

Wednesday 16 November 2005 12:42:00 am

Comment44709

I believe the problem is that the currentdate template operator returns a unix timestamp, including the current time.

You can use the following code to make a right timestamp to compare with:

{def $currentDate=currentdate()
     $current=gettime($currentDate)
     $timestamp = maketime( 0, 0, 0, $current.month, $current.day, $current.year )}

Related post: http://ez.no/community/forum/general/show_events_for_the_next_x_days

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org