• Resolved mistermagoo

    (@mistermagoo)


    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)
  • mistermagoo, with the fresh install, did you import content from another wordpress blog or site?

    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

    (@mistermagoo)

    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.

    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

    (@mistermagoo)

    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.

    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

    (@mistermagoo)

    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

    (@mistermagoo)

    nope:(
    I guess I need to further search the error… but, thank you, now I’m closer to the solution.

    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

    (@mistermagoo)

    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

    (@mistermagoo)

    <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

    (@mistermagoo)

    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.