0
Welcome Guest! Login
0 items Join Now

Wrong date bug! (2009 instead of 2010)

  • Wrong date bug! (2009 instead of 2010)

    Posted 14 years 2 months ago
    • Hi,

      There's a bug that displays 2009 instead of 2010 as the creation date for the new posts. This bug is caused by one(!) letter typo and can be very easily fixed by any of you.

      Please open these files : archive.php, index.php, single.php, search.php, page.php and footer.php from your theme directory and find these code (the letter's inside of the_time(' ') can vary a little bit) :
      <?php the_time('l, j F o H:i'); ?>
      and this code :
      <?php the_modified_date('l, j F o h:i'); ?>

      and replace all letters o with Y, so ie. this code :
      <?php the_time('l, j F o H:i'); ?>
      becomes that :
      <?php the_time('l, j F Y H:i'); ?>

      Please note that not every theme has to have the_modified_date, if your doesn't just change what you can :)

      Sorry for that ...

      Cheers
      Jakub
    • Remember to always post a link to the site you're having problem with.

Time to create page: 0.050 seconds