Quote from: cbaone at Jun 17, 2008, 01:03 PM
Yes, I get 1969 in the [+date+] placeholders for ditto. Also, if I put in [*createdon*], [*editedon*], or [*pub_date*] in the document I get a unix time stamp 1211401876. Weird isn’t it?
Yes, weird that [+date+] and [+pub_date+] aren’t working for you in Ditto. But getting the timestamp output on those other doc variables is correct.
Just going out on a limb, but what would happen if you installed the getField snippet:
http://modxcms.com/getField-1.3-beta-1189.html
and in your Ditto template, where you would put [+date+], you put [[GetField? &docId=`[+id+]` &field=`pub_date`]]
That’s just mainly to get a better idea of what’s going on. Even if it returns a timestamp, you won’t be able to format it easily. But if it does return the timestamp, then as a workaround to this problem, you could write a custom snippet that did a similar thing to the GetField call, but formatted the date how you want.