WordPress.org

Ready to get started?Download WordPress

Forums

Imported posts show up dated 1969? Why? How to fix? (8 posts)

  1. thehutch
    Member
    Posted 5 years ago #

    Hello.

    I am re-establishing my site as a WordPress blog instead of Movable Type. As you can see from that link, I'm having a few problems. I have done a few test imports before I import the 5000 old entries in bulk.

    Of the five entries I imported today, two of them show up as December 31st, 1969. I cannot figure out why some of them import the correct date just fine and the others are screwing up. The dates look properly-formatted. I can't import my posts until I can resolve this issue.

    Does anyone know how to prevent the 1969 date problem? This appears to be my last major issue, so if I can resolve this then I can get my site relaunched.

    Thank you.

  2. thehutch
    Member
    Posted 5 years ago #

    I'm surprised there aren't any responses. Maybe it's just because I posted in the middle of the night.

    I can't be the first person to have this problem, but when I did a search for 1969 all I could find was posts about people wanting to set their posts to years earlier than that. Am I really having that unique a problem?

    Any suggestions are appreciated. Thank you very much for reading.

  3. thehutch
    Member
    Posted 5 years ago #

    I may just have to import all of the entries and manually correct them afterward, but I'd hate to do that. Doesn't anyone have a solution?

  4. thehutch
    Member
    Posted 5 years ago #

    I figured it out. I'm posting this just to help anyone else who may search on these terms in the future.

    The import problem has been solved! Here's what was happening:

    Check out the code on the post that was showing up as 1969.

    AUTHOR: Alan Kistler
    TITLE: Sci-Fi Writers Ready To Fight Terror!
    BASENAME: scifi_writers_ready_to_fight_t
    STATUS: Publish
    ALLOW COMMENTS: 1
    ALLOW PINGS: 1
    DATE: 05/31/2007 14:01:58 PM
    CONVERT BREAKS: 1
    PRIMARY CATEGORY: Off-topic

    Look at that date again: 05/31/2007 14:01:58 PM

    PM? If you're using military time, you don't need a PM. The odd thing is that the morning posts with AM after it import just fine, but posts with PM would cause it to be import as 1969.

    A simple find-and-replace of my exported text files cleaned up the posts and now they're importing without a fuss. As soon as I've finished my test of a few more imports, we should be good to go.

    In the meantime, enjoy reading more and more of the archived posts.

  5. mattgierhart
    Member
    Posted 4 years ago #

    Thanks for documenting your fix, even though you figured it out yourself. It helped me in a slightly related issue.

  6. john.connolly@yahoo.com
    Member
    Posted 4 years ago #

    I'm seeing this problem with a new installation of WordPress.

    The interesting thing is that the "Published on" date in the admin account is correct but if you "Edit" the entry it shows the "December 31st, 1969" date.

    The date as displayed in in the postings is also incorrect.

  7. john.connolly@yahoo.com
    Member
    Posted 4 years ago #

    I'm seeing this problem with a new installation of WordPress.

    The interesting thing is that the "Published on" date in the admin account is correct but if you "Edit" the entry it shows the "December 31st, 1969" date.

    The date as displayed in in the postings is also incorrect.

    BTY, doing a Google search returned, literally, 100s of entries showing this incorrect date in people's blogs but it was like noone seemed to care. Is this such a pervasive problem in WordPress that people have stopped complaining about it and just accepted it as the way it is?

  8. john.connolly@yahoo.com
    Member
    Posted 4 years ago #

    I found a solution:

    In another post there was a recommendation to add the line:

    date_default_timezone_set('America/New_York');

    To the start of wp-config.php

    This seems to have fixed the problem.

    I'm still curious why all those people out there don't seem to care that the date stamp on all their blog entries is wrong. But that's a mystery to be solved another day :^)

Topic Closed

This topic has been closed to new replies.

About this Topic