The patches below are obsolete with the release of WordPress 1.2.2, which includes the fixes and improvements in the patch files from mycvs.org and me.
It appeared that a fix I made in the latest ecto beta (MacOSX) has had a nasty side-effect for WordPress 1.2 “Mingus” users in that it was actually a bug that fixes a bug in WordPress' handling of timezones. Since the WordPress folks are already working on 1.3, which presumably will handle timezones better, I decided to fix the 1.2 issue myself. You can download the patched files from here. There are two versions, one is for the 1.2 “Mingus” version available from the WordPress site, the other is for the version patched by mycvs.org. If you apply the latter, you actually get a patch that includes mine as well as the one at mycvs.org.
What is changed is that the code now properly handles incoming UTC date strings and also sends back UTC date (the affected statements are commented in the code, just search for “Adriaan”). ecto in turn will deal with this as desired.
Install instructions:
- Make a backup of the files xmlrpc.php and wp-includes/functions.php that are in your WordPress installation directory.
- Unpack the downloaded archive.
- Put xmlrpc.php in your WordPress install directory.
- Put functions.php in the wp-includes directory of your WordPress install directory.
- You may have to refresh your recent entries listing in ecto to get the correct time stamps.
By the way, if you applied the patch from mycvs.org and you want to upload files, make sure that:
- “Allow File Uploads” in Options -> Miscellaneous in the WordPress control panel is turned on.
- The destination directory that you set in the control panel is writable by everyone (i.e. chmod 777).
- In ecto, set the Destination field empty, i.e. remove the default “images/”.
Listed below are links to weblogs that reference 'WordPress and timezones' from ecto.
Excerpt: because whenever I edited a post (such as this one) from Emacs, the date on the post would get changed to today’s date. Searching around a bit I found the second hunk in http://mycvs.org/wp/wp-content/xmlrpc.12.patch to hold the answer. According to http://ecto.kung-foo.tv/archives/001142.php this might not be neccessary with WP 1.2.2, but the code for current_time('timestamp',1) was still there, rather than strtotime($postdata['post_date']) which uses the original creation time from the post being edited, if a new time isn
Excerpt: added support for Blogger API, arguably the weakest XML-RPC API around. But I digress again. Here's what I consider important in a blog API: Date handling: All dates should be treated as UTC. The server and the client send and receive UTC. I even patched up WP for this. People may go like “Why? Who cares?”, but if blogger and server are in different timezones, this issue becomes crucial. Even more when a given blog has many authors, some or all of whom may be in different timezones.
Excerpt: I’m testing out the MarsEdit beta. I had to run a patch on my wordpress install to get the xml-rpc to work. Ironically, the patch was written by Adrian, who has his own blogging software called Ecto. So naturally I will compare the two. I feel kind of torn between two worlds because I know Adrian from #joiito but I am a beta tester for
Excerpt: given the number of posts you have in each (example chart at Podz’) (0) Gmail Wiki (0) Alexa Web Info Service: A beta web information service providing programmatic access to information collected by Alexa’s web crawler Via: Photomatt (0) ecto blog: WordPress and timezones : Fix for incorrect handling of UTC date strings in xmlrpc. This patch is really designed for Ecto users and is distributed by the Ecto author. This might be useful if you use a desktop blogging client to post to your WordPress blog.
TrackBack URL for this entry is http://www.kung-foo.tv/movtype/mt-tb.php/486
Listed below are links to weblogs that reference 'WordPress and timezones' from ecto.
Excerpt: I like to be close to the edge of new software. That's why I've upgraded to 1.3 alpha of Wordpress. But, while using Ecto, I haven't been able to preview my entries with Markdown. The patch out there for mt.supportedTextFilters doesn't work with t...
Weblog: Skockination
Tracked: October 22, 2004 03:20 AM
Excerpt:
h3. New Design
As you can see, Mac Geekery sports what I hope will be the final design for the site. Perhaps a few tweaks here and there, but this is it. Poll's on the right, discussion of the redesign is in the "forum topic":http://www.macge
Weblog: Mac Geekery
Tracked: October 22, 2004 03:41 AM
Excerpt: XML-RPC, Atom, and extensibility.
Weblog: chaotic intransient prose bursts
Tracked: December 7, 2004 10:03 PM