Closed (fixed)
Project:
Admire Grunge
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Feb 2010 at 10:26 UTC
Updated:
16 Feb 2010 at 11:06 UTC
Node date is always shown as 01/01/70, as easily demonstrated by your own demonstration site. :-)
The fix is easy, though. Admire Grunge is trying to show a comment timestamp as a node creation time, which obviosly does not work, at least if the current node doesn't have any comments. To fix just apply this patch to template.php:
---
--- a/template.php
+++ b/template.php
@@ -98,8 +98,8 @@ function admire_grunge_node_submitted($node) {
return t('<span class="larger">@day</span> <br/> @datetime',
array(
// '!username' => theme('username', $node),
- '@day' => format_date($comment->timestamp,'custom','D'),
- '@datetime' => format_date($comment->timestamp,'custom','m/d/y'),
+ '@day' => format_date($node->created,'custom','D'),
+ '@datetime' => format_date($node->created,'custom','m/d/y'),
));
}
---
Comments
Comment #1
sakib000 commentedoop! cant believe I made such a silly mistake. Fixing it next version. Thanks thejaba
Comment #2
sakib000 commentedComment #3
thejaba commentedThank you for your fast response time! :-)
Cheers,
Jaba