Just for the record and future reference:
The "Z" at the end of the time string signifies that the time is in Coordinated Universal Time (UTC), also referred to as Zulu time (hence the Z) or Greenwich Mean Time (GMT).
http://en.wikipedia.org/wiki/Coordinated_Universal_Time#Time_zones
(I came across this a while ago when trying to fix an issue related to non-GMT timezones in WordPress and the Blogging bundle.)
Martin
Am 03.12.2006 um 13:43 schrieb Jackie Chappell:
OK, I seem to have answered my own question :-). In case it helps anyone else, here are the steps I needed to take to get the Blogging Bundle working with ExpressionEngine (1.5.1).
There are two problems with using the Blogging bundle with EE. The first is that the blog id is not in the same format in the endpoint URL as standard metaweblog endpoint urls. It looks something like this:
http://mydomain.com/pathtoEE/index.php?ACT=25&id=1, where id=x is the blog id.
The second is that the date format returned by XMLRPC isn't parsed properly by the the ruby parser.rb (I'm using ruby 1.8.4), because it has a Z on the end of the time string. So, to fix it, make the following changes:
- Edit /usr/lib/ruby/1.8/xmlrpc/parser.rb (the path may be different
depending on where you installed Ruby), line 87 to read:
if str =~ /^(-?\d\d\d\d)(\d\d)(\d\d)T(\d\d):(\d\d):(\d\d)Z?$/
then
Note the extra Z? near the end of the regular expression.
blogging.rb, line 167 onwards:
if @endpoint =~ /#(.+)/ @blog_id = $1 elsif @endpoint =~ /&id=(.+)/ # EE format of blog id in endpoint @blog_id = $1 else @blog_id = "0" end
That seems to do the trick for me. It would be sensible to copy the Blogging bundle and save the new one under a new name, and with a new UUID in info.plist, I guess.
Hope that helps anyone else using EE.
Jackie