I had a similar problem recently.
My date source was a TV and was called out in the Ditto parameter list. I got Dec. 31, 1969 regardless of what the TV contained.
The solution that worked for me was to set the Input Type of the TV to Date, set the widget to Unixtime, and use the format string "&dateFormat=`%B %d, %Y`" in the Ditto call. It worked then.
kc64,
Thanks for the reply, but I’m trying to avoid date tv’s there would be WAY too many for me to have to go back in and adjust. The date I’m pulling is through ditto’s blogging capability and the format of the date was never a problem until recently. Something must have changed on the server or in ModX somewhere that caused this. For the life of me I can’t seem to find what it was. One day the dates were working and the next day they weren’t.
I got this issue when I was duplicating content, I think. Only noticed it because of having a sitemap for Google.
Duplicating content how? What was it specifically? Did you resolve it? How?
Sorry, I’m very frustrated at this point. I’ve tried so many things to remedy the problem and nothing has worked. If you could expound on your problem I would appreciate it. Thanks.
By chance did you update to Ditto 2.1+? The dateFilter extender seems to have been rewritten as a class in the new version so if you are using mixed versions it may not work right. Just a reminder that you need to update the files in assets/snippets/ditto AND the snippet in the manager when updating snippets.
To troubleshoot have you tried removing the dateFilter extender from your Ditto call to see if that could be the problem?
It’s interesting for sure, but why would it work for a few weeks then stop? I’m on a Linux - CentOS 4 box, how can I tell if my C library doesn’t support PHP’s strftime()?