• I have the links updated showing, but the time I have set is not working correctly. I have the time set to 6 hours (720) in the options.
    On my blog I have a link that was updated at 11:26a.m. and it’s now 8:12p.m. and still showing as updated.
    Any ideas? Thanks!

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter Nick Momrik

    (@mtdewvirus)

    I should also note that I have weblogs_cacheminutes set to 15.

    Thread Starter Nick Momrik

    (@mtdewvirus)

    From what I’ve been able to decipher from the code, it looks as if the problem lies in the fact that whatever time weblogs.com uses for updates is compared against the current time on the server. An offset is never accounted for.

    Thread Starter Nick Momrik

    (@mtdewvirus)

    Also, the “Last Updated” title tag is using the incorrect time.

    That’ll do until something annoying to debug comes along. I’d forgotten that if you hit changes.xml more than three times in an hour, you get a 503 Service Unavailable back (and if your blog is on a shared host with one IP for 200 WP-powered blogs, good luck ever getting to it). Not that that’s your problem, since you’ve got a nice fresh weblogs.com.cache, but it’s sure slowing down my debugging the date thing.

    Thread Starter Nick Momrik

    (@mtdewvirus)

    What’ll do?

    “A problem that involves wanting to run links-update-xml.php more than three times in an hour while trying to debug it” – just saying “I’m looking, but not very fast, since I got myself banned from grabbing updates, which is slowing me down.”
    Though you might want to switch to something more than a 20 minute interval. You can grab shortChanges.xml more than three times an hour, but since it only does 5 minutes worth, you’d need to grab it from a cron job more often than that to not miss things. A 15 minute cache interval should mean that you get it three times in 45 minutes, then have to wait either 15 minutes or an hour before you can get it three times in 45 minutes again depending on how he does the ban.

    Thread Starter Nick Momrik

    (@mtdewvirus)

    Oh, I can change it to 20 minutes, no problem, I didn’t realize there was a minimum. That’s not the problem anyways…
    The problem is in the way WP stores the time it gets from weblogs.com. If you look at the values for the link_updated field in the wp_links table, the times are not in relation to all of the other dates/times stored in the database, unless you happen to be in the same time zone that they use for their times. When the “Last Updated” title is displayed, it adds the server offset to this incorrect time. I’ve modified my links-update-xml.php file to store the dates and times with an offest for the time being, but I believe there needs to be a new setting in the options so that this can be done automatically.

    Yep, I seem to have lost the ability to read a simple statement of a problem, so for the third time today I was chasing after the wrong bug in the wrong place. I think maybe I’ll just go throw rocks at boys for a while.

    Thread Starter Nick Momrik

    (@mtdewvirus)

    Sorry I didn’t clarify the best. :-/
    I’m going to put on my hardhat cuz I don’t feel like getting hit by a rock! ??

    Thread Starter Nick Momrik

    (@mtdewvirus)

    Developers?

    Thread Starter Nick Momrik

    (@mtdewvirus)

    Maybe a better solution would be to store all of the dates in relation to the dates used by Weblogs.com and then have a single time offset.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Links Updated Time incorrect’ is closed to new replies.