Hi everyone,
I have a problem with date format settings. When I'm using a Bluemarine theme, the 'Posted by' text in every node is like that: "Author, 25. June 2006 - 11:21". But when I change a theme to non-standard one, the 'Posted by' will be for example "Posted 25th June, 2007 by Author". The question is: How to change the display date format (in 'Posted by' texts) in theme ? Thank you.

Comments

arindamghatak794’s picture

You can change the date format from admin -> settings. Not sure how it is to be done for specific themes though.

www.MyResearchFunds.com
The World's Fastest Growing Network of Researchers

norti’s picture

From admin -> date/time tab I can't change 'Posted by' output format. It depends on the selected theme (so maybe some theme file should be edited - but I don't know which file), and this text includes both date and author information (not only date/time).

xmacinfo’s picture

Each theme can display it's own date format.

A good example is the Aberdeen theme.

The are overriding the posted by line completly. See:

<?php if ($submitted): ?>
    <span class="submitted"><?php print t('Posted ') . format_date($node->created, 'custom', "F jS, Y") . t(' by ') . theme('username', $node); ?></span> 
<?php endif; ?>
xmacinfo’s picture

Drupal 6 will also let the administrator set default date format using custom strings.