If I change dateformat for the different format types, it does not change in the "ingress list" on the frontpage. If I change to another Theme it changes, but if I change back to Pixture Reloaded it returns to default.

If you hold the mouse over the date, the correct format are shown.

Visit: http://www.jetsofbergen.no/index.php and look. The format shown should be the same as when you hold the mouse over the dates. The format are changed for all types (short/medium/long).

Comments

Jeff Burnz’s picture

Title: Date format does not change in frontpage » Change date format in nodes
Category: bug » support

You need to replace the custom date formats in node.tpl.php

Look for this block of code in node.tpl.php (around line 26):

<?php if (!empty($submitted)): ?>
  <div class="submitted"><abbr title="<?php print format_date($node->created, 'custom', "l, F j, Y - H:i"); ?>">
    <?php print format_date($node->created, 'custom', "F j, Y"); ?></abbr> <?php print t('by'); ?> <em><?php print $name; ?></em>
  </div>
<?php endif; ?>

And replace it with this:

<?php if (!empty($submitted)): ?>
  <div class="submitted"><abbr title="<?php print format_date($node->created, 'custom', "l, F j, Y - H:i"); ?>">
    <?php print $date; ?></abbr> <?php print t('by'); ?> <em><?php print $name; ?></em>
  </div>
<?php endif; ?>

The difference being we replace the format_date() function with the standard $date variable - I think I will change to this for the next version of PR (probably for Drupal 7).

andersh’s picture

Thanks! That did the trick!

Thanks for a really great theme, by far my favourite!

Jeff Burnz’s picture

Assigned: Unassigned » Jeff Burnz
Status: Active » Postponed

Setting to postponed, I will change this in a future version as there are a number of languages this causes problems with.

NancyDru’s picture

Why not just use the Submitted By module?