I have this theme installed and all of the dates are stuck at January 1st, 1970. The correct date is reflected when I switch themes, but not when I switch back to the Grid Inspired theme.

I imagine that something needs to be changed in the template.php file.

Anyone know where to start?

Comments

Memeshift’s picture

Status: Active » Fixed

I fixed it my self (thanks to Stephen from spaceshare.com). i followed his advice:

"...my recommendation for a beginning-programmer: look at the templates for comments in your theme, and then compare to one of the basic themes like bluemarine (different themes use different theme-engines, try to find one with the same underlying theme-engine as yours if possible). Hopefully you'll find a similar line for the time in both templates with a slight difference/error in yours; or compare how dates are handled for comments and nodes in your own theme ... I don't know if it will be template.php, or a more specific file like comment.tpl.php, there are still a lot of places where it might be."

In Grid Inspired, there was a specific file called comment.tpl.php. I found where it said:

    <div class="content"><?php print $content; ?></div>
    <div class="meta"> <span class="commenter"> <?php print (theme('username', $node)) ?> </span> <span class="date"> <?php print ( format_date($node->created, 'custom', 'd')) ?> <?php print (format_date($node->created, 'custom', 'M')) ?> <?php print (format_date($node->created, 'custom', 'Y')) ?> </span> <?php print $links; ?></div>
</div>

and changed it to:

    <div class="content"><?php print $content; ?></div>
    <div class="meta"> <span class="commenter"> <?php print (theme('username', $node)) ?> </span> <span class="date"> <?php print $submitted; ?> </span> <?php print $links; ?></div>
</div>

It did the trick. To format the date, I went into www.mytestsite.org/admin/settings/date-time and adjusted the Short, Medium and Long date formats.

Now was this a bug in the theme? If so, how should i go about committing it?

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.