Hi all,
Modx Newbie here. I’m having a problem trying to get Ditto to read my TV date.
The ditto call i’m making is:
[!Ditto? &parents=`10` &tpl=`newspage` &extenders=`dateFilter` &dateSource=`docdisplaydate` &dateFormat=`%c` &sortBy=`docdisplaydate` !]
The TV is set to: input type = date and widget = Unixtime
I’m getting this error:
PHP error debug
Error: strftime() expects parameter 2 to be long, array given
Error type/ Nr.: Warning - 2
File: /home/epicnet/public_html/gf/assets/snippets/ditto/classes/ditto.class.inc.php
Line: 294
Line 294 source: $placeholders[’date’] = strftime($dateFormat,$timestamp);
I’m guessing that the problem is with the date formatting as when i write out my TV date I get a random number which i Guess is something to do with Unix, I have tried changing the widget to date and also not setting it?
Any help would be much appreciated.