Inspired by one of Bob’s helpful forum posts (
http://modxcms.com/forums/index.php?topic=56339.0), I’ve added a page to the official wiki dealing with the topic of date formats:
http://rtfm.modx.com/display/revolution20/Date+Formats
However, I’ve noticed a couple odd things... is it "normal" or expected to have to convert the resource fields to a Unix timestamp before using the date filter?
For example, this gives me the expected output "Thu Apr 14, 2011":
[[*createdon:strtotime:date=`%a %b %e, %Y`]]
Whereas the following flubs to Unix date zero "Wed Dec 31, 1969":
[[*createdon:date=`%a %b %e, %Y`]]
Secondly, the
pub_date doesn’t seem to ever get a value; its value should be distinct from the
publishedon field, but I can’t seem to find where the
pub_date is going.
Any ideas?