By jyamada1 on
On the admin settings page the only options for date display include time. I'd like to be able to display only the date. I've tried following the directions from this thread http://drupal.org/node/9989, but I kept getting undefined function errors. I've also tried editing my node.tpl.php page directly with
print format_date($timestamp,'custom','F j, Y')
but it is displaying some strange date from 1970... don't really understand why. is this a problem with my server config? (i'm hosted on Site5)
This particular date needs to go in a Last Modified: field. Ultimately, it would be nice to add date only options to the dropdown.
Comments
jyamada1, I've been playing
jyamada1, I've been playing about with this from a newbie angle for a half hour. I too was getting 01/01/1970, probably the earliest date stored for 'timeless' objects. You need to make the date relevant to the node, because there's no other last-modified date stored.
print format_date($node->changed, 'custom','F j, Y');Try this, and then re-submit all your nodes (I know, it's easy enough for me seeing as I'm just kicking off - but without a new change, it'll fall back on 1970).