Title: wrong date
Last modified: August 19, 2016

---

# wrong date

 *  Resolved [mistermagoo](https://wordpress.org/support/users/mistermagoo/)
 * (@mistermagoo)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/wrong-date-6/)
 * Just installed a fresh 3.1.1, and something is wrong with the date in my installation.
   It shows the 30th of april and not the correct date in the posts.
    I checked 
   the general adjustments, and put my local time, but it’s still not working.
 * Does anyone know how to fix this?
    Thanks.

Viewing 12 replies - 1 through 12 (of 12 total)

 *  [wayne hatter](https://wordpress.org/support/users/wayne-hatter/)
 * (@wayne-hatter)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/wrong-date-6/#post-2037625)
 * mistermagoo, with the fresh install, did you import content from another wordpress
   blog or site?
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/wrong-date-6/#post-2037635)
 * WordPress use the server’s time + your local time adjustments to calculate the
   correct date/time, so it’s just possible that this could be an issue with the
   server. Have you spoken to your host about it?
 *  Thread Starter [mistermagoo](https://wordpress.org/support/users/mistermagoo/)
 * (@mistermagoo)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/wrong-date-6/#post-2037655)
 * Hi,
 * I didn’t import any content, everything is superfresh.
    But I did transform the
   language of the admin, from english to spanish, plus I tweaked a few things in
   the theme I’m using. Do you think it might be related to the theme?
 * I just contacted my server helpdesk, and he ask me to open a ticket, and now 
   I will check the whm. Yes, perhaps sthing’s wrong there.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/wrong-date-6/#post-2037657)
 * > Do you think it might be related to the theme?
 * It’s possible. Have you tried switching to the Twenty Ten theme to see if this
   resolves the problem? Are you running any plugins?
 *  Thread Starter [mistermagoo](https://wordpress.org/support/users/mistermagoo/)
 * (@mistermagoo)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/wrong-date-6/#post-2037660)
 * I just checked the whm and time and date zone are good. But, I just checked with
   the 2010 theme, and it’s showing the right date. Sorry, my mistake 🙂
    So it’s
   the theme… I’ll try to find the error, but if you know ahead what to do, would
   be apreciated, thnx.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/wrong-date-6/#post-2037664)
 * It could be almost any file in the theme. What code does the theme use to display
   the date in (say) index.php? Usually, it’s something like `<?php the_date();?
   >` to `<?php the_time;?>`.
 *  Thread Starter [mistermagoo](https://wordpress.org/support/users/mistermagoo/)
 * (@mistermagoo)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/wrong-date-6/#post-2037667)
 * hmm, perhaps the theme is too old.
    Not sure, but this is the lines of code I
   found in the index, and in the single php.
 * > <div class=”dd”><?php the_time(‘t’); ?></div>
   >  <div class=”mo”><?php the_time(‘
   > M’); ?></div>
 * Perhaps for month, I need to change to: ?php the_date(‘M’); ?
    I’ll try.
 *  Thread Starter [mistermagoo](https://wordpress.org/support/users/mistermagoo/)
 * (@mistermagoo)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/wrong-date-6/#post-2037671)
 * nope:(
    I guess I need to further search the error… but, thank you, now I’m closer
   to the solution.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/wrong-date-6/#post-2037676)
 * The template tags look correct. Perhaps there’s something in the theme’s functions.
   php file (or any other non-template files that the theme includes) that is messing
   up the date?
 *  Thread Starter [mistermagoo](https://wordpress.org/support/users/mistermagoo/)
 * (@mistermagoo)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/wrong-date-6/#post-2037683)
 * after checking, can’t find anything relevant in the functions.php, but rather
   in the archive.php.
    Do you think it’s related to it?
 *  Thread Starter [mistermagoo](https://wordpress.org/support/users/mistermagoo/)
 * (@mistermagoo)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/wrong-date-6/#post-2037691)
 * > <h3>Archivo para la ‘<?php single_cat_title(); ?>’ Categoria</h3>
   >  <?php /*
   > If this is a daily archive */ } elseif (is_day()) { ?> <h3>Archivo para <?php
   > the_time(‘F jS, Y’); ?></h3> <?php /* If this is a monthly archive */ } elseif(
   > is_month()) { ?> <h3>Archivo para <?php the_time(‘F, Y’); ?></h3> <?php /* 
   > If this is a yearly archive */ } elseif (is_year()) { ?> <h3>Archivo para <?
   > php the_time(‘Y’); ?></h3>
 * Perhaps is something wrong here?
 *  Thread Starter [mistermagoo](https://wordpress.org/support/users/mistermagoo/)
 * (@mistermagoo)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/wrong-date-6/#post-2037710)
 * Nevermind, I found another solution.
    I changed to code to <?php the_date();?
   >, and adapted the css. Thank you.

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘wrong date’ is closed to new replies.

## Tags

 * [wrong date](https://wordpress.org/support/topic-tag/wrong-date/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 12 replies
 * 3 participants
 * Last reply from: [mistermagoo](https://wordpress.org/support/users/mistermagoo/)
 * Last activity: [15 years, 1 month ago](https://wordpress.org/support/topic/wrong-date-6/#post-2037710)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
