Hey Guys,
I have a template variable called eventDate. When I set it to use the Unixtime widget it displays the wrong date.
For instance on one document I have selected: 13-08-2010 10:38:00
When using the unixtime widget with ditto as shown below, it outputs as: 31.38.2019
Here is my Ditto call.
[!Ditto? &parents=`4` &tpl=`event-tpl` &sortBy=`eventDate` &dateSource=`eventDate` &dateFormat=`%d.%M.%Y` &sortDir=`ASC` !]
and here is my ditto template:
<div class="event">
<h2><span class="date">[+date+]</span> - [+longtitle+]</h2>
</div>
If I turn off the Unixtime widget it displays the correct date, but my understanding is that it will not sort properly if it’s not in Unixtime. I use a similar method for another section of the site except using the pub_date and it appears to work fine.
Cheers,
Jim