Search:

Last 3 Posts @ September 8, 2008 2:28:49 AM EDT

George Bush in lipstick (1 hour, 27 mins ago)

The Huffington Post has a funny piece about "George Bush in lipstick", a.k.a. Sarah Palin, complete with a series of pictures to demonstrate how Bush morphs into Palin...

The Alberta Spectator

The end of the neo-liberal project? (5 hrs, 2 mins ago)

Today’s news that the US’s two big mortgage lenders are effectively being nationalised would, if there any justice left around the place, be a final nail i...

The Bickerstaffe Record

Dion's moment (5 hrs, 13 mins ago)

Liberal leader Stéphane Dion has sent out this mass email this afternoon, titled "This Moment": This is the moment I've been waiting for. It's a critical moment for bo...

The Alberta Spectator

Monday, December 19, 2005

Future Posts - 6 comments

I've had to take steps to prevent B4L-syndicated blog posts from hogging the top three places because they've been published with a date that is many hours in the future. I'm not rapping knuckles, but it is kinda annoying...

The B4L software really shouldn't be doing this: it knows the post's date is wrong, but has no authoritative way of knowing what it should be. Generally, the problem is caused by the blog's author writing in Britain under the rule of GMT, but publishing under some US time zone (generally PST), which their blogging software appears to achieve by blindly adding 8 hours on to local time (NB. If we had any California-based bloggers, they'd be quite right to use PST). However, we have absolutely no way of knowing what the blogger's time zone is. We might intercept something set 5 hours in the future, which could either be a brand new post published under a Central Asian timezone (unlikely) or something published under PST, which the blogger worked on for 2 and a half hours and which didn't actually reach their Atom/RSS file for another half an hour.

The right course of action is for bloggers to check/update their publishing settings, but in the meantime we'll use a couple of new (much better, but still imperfect) rules to make things better:
  • If we encounter anything set more than 3 hours in the future, we'll assume the blogger is publishing in Blogger-default PST, and we will subtract a full 8 hours.
  • Anything less than that, we'll shift it back by enough hours to make it either now, or in the past.
Hopefully that'll do the trick (it seems to be working now) without causing problems for anyone who is posting in the correct time zone.

6 comments so far...

At 12:12 PM, December 20, 2005, Anonymous Jo said...

I'd just like to point out that I moaned about this at the B4L meet-up in Brighton in September - and you all laughed...

   
At 12:25 PM, December 20, 2005, Blogger Bloggers4Labour said...

I don't remember that at all - how rude of us! Well it's been getting on my nerves a bit recently, so I thought I'd add the workaround.

   
At 10:04 PM, December 21, 2005, Blogger Tom said...

No, it's true, she did - and we did all laugh at her.

   
At 10:25 PM, December 21, 2005, Blogger Bloggers4Labour said...

Blimey, I wonder what else I've forgotten (the strippers? the drugs bust? the car chase?)

   
At 12:29 PM, December 22, 2005, Blogger jonathan said...

The car-chase was brilliant. Remember how you killed that man, Andrew?

   
At 12:38 PM, December 22, 2005, Blogger Bloggers4Labour said...

And I thought that big, round thing wrapped in foil in my freezer was just a big Christmas pudding - eek.

   

Post a Comment

<< Home

B4L Running Costs

£2,115.48 spent since 2007, which could be met by a donation of £4.18 per blogger.




Join the Labour Party
Sign the Euston Manifesto
We Are ZCTU: Defend unionists on trial in Zimbabwe