On a recent post, an astute reader (and commenter) noticed that his comment (and all comments on that post) were appearing as ‘January 23, 2008’. I looked. Yikes! He was correct. Hmmm.
I hit the Graffiti forums and found a few threads that mentioned it, but no fixes. Time to take a peek on my own. Once in the control panel, navigate to Presentation > Themes > Personalize (for the current theme). Next, click post.view to bring up the markup template behind an individual post.
At this point I thought the first step would be to just perform a search for the string ‘January 23’. Makes sense, correct? You bet. So, I did; I found the string. And then I was sad. Here is what I found:
<a href="#comment-$comment.Id" title="Permanent link to this comment" rel="bookmark">January 23, 2008</a>
Hard-coded. That certainly explains it. Goofy theme author.
Next, I pulled up the post.view for the default Graffiti 1.1 theme. Oh, it is hard-coded here, too. More sadness. Not the theme author’s fault. Well, not entirely.
Enough being sad, let’s get happy. The fix for this faux pas is simple:
1) locate ‘January 23, 2008’ in your post.view template. delete.
2) replace with: $macros.FormattedDate($comment.Published)
My comment link now looks like this:
<a href="#comment-$comment.Id" title="Permanent link to this comment" rel="bookmark">$macros.FormattedDate($comment.Published)</a>
3) Click the Save Changes button.
This will now list the date for a comment using a format that appears like this: ‘Tuesday, December 02 2008’. Spiffy! Fixed.
Next steps? Ask your favorite Graffiti 1.1 theme author to verify that, if they copied some parts of the default theme, they fixed this item in their theme. Also, you will need to check this (and perhaps fix it) for any other theme that you use as well.
Oh, and what is so swell about January 23? Not certain, but a few things have happened on January 23.