I am using this chunk/tv to post the date an article was published:
<div class="article">
<h2 class="news-title"><a href="[[~[[+id]]]]">[[+pagetitle]]</a></h2>
<div class="news-date"><p>[[*publishedon:strtotime:date=`%b %d, %Y`]]</p></div>
</div>
My date is coming up as "Nov 15, 2010" for all resources even on a resource that has been created today.
On my actual news page (once you click the link from the title)
I am using this chunk/tv to post some info:
<p><strong>FOR IMMEDIATE RELEASE</strong></p>
<p>[[*publishedon:strtotime:date=`%B %d, %Y`]]</p>
</div>
And I am getting the correct date.
I know that the system is seeing the correct date, the order of my documents is by date and the oreder is correct. If I create a new document, it is placed at the top. (Which is correct). Only the date is "Nov 15, 2010"
Not sure where to look for the 11/15/2010 date...
[*EDIT]
Straight up [[*publishedon]] gives me: 2010-11-15 12:48:00
So I converted that to a timestamp and got: 1289825280
A quick search in the database for that on the published on date returns zero results.
Solution:
I chaged this: [[*publishedon:strtotime:date=`%b %d, %Y`]]
to this: [[+publishedon:strtotime:date=`%b %d %Y`]]
Although, I don’t fully grasp why...