I'm currently using the Blogging Bundle to post to a WordPress 2.4 blog. I'm not entirely sure if the problem I'm experiencing is on the WP or the TM side of things (or someplace in between), but it manifests itself within (and so far, only within) TM, so I thought I'd start here. If these questions would be better directed elsewhere, please let me know.
After posting via TextMate, the post gets sent back down to TextMate with various meta-data filled in. Among this meta-data is the date field. This date is being offset back by 4 hours, although the actual post within WP has the correct time.
For instance:
* I create a post within TM at 11:04:41 -0400, and post it to my blog.
* The post, within wordpress, has a post date of 11:04:41 -0400
* The post that's returned to TM, however, now has a Date of 07:04:41 -0400
This rollback appears to be directly related to the time zone as defined in WordPress. If I change my time zone to NDT (-0230), then the time that appears on the post inside TextMate is rolled back by 2.5 hours:
* I create a post within TM at 11:04:41 -0400, and post it to my blog.
* The post, within wordpress, has a post date of 11:04:41 -0400
* The post that's returned to TM, however, now has a date of 08:34:41 -0400
The issue is that if I then update the entry and repost via TextMate, I need to manually adjust the time on the entry, or it will now be back-dated within WordPress as well. I frequently revise posts after they've been published, and depending on the time of day, this behaviour can even result in my permalinks being changed.
I also downloaded another blogging client (MarsEdit), and attempted to re-create the problem there. Other Blogging Client displays the same date/time as is stored in WordPress; reposting the entry does not cause the date/time in Other Blogging Client to change.
Which leads me to suspect that the problem is somehow specific to TextMate or the Blogging Bundle.
I'm running TextMate Version 1.5.7 (1455) if it matters. I'm not sure which version of the Blogging Bundle I'm using, as it doesn't seem to advertise that anywhere that I can see.
My thanks in advance for any pointers or suggestions anyone may be able to offer.
Gwen
On 19 Mar 2008, at 17:57, Punkin @ Mag3.14159 wrote:
[...] After posting via TextMate, the post gets sent back down to TextMate with various meta-data filled in. Among this meta-data is the date field. This date is being offset back by 4 hours, although the actual post within WP has the correct time.
Some info about the problem to be found here: http://wiki.macromates.com/Blogging/WordPress
Basically TextMate assume all dates sent/received to/from server to be UTC, since the standard does not carry time zone info.
[...] I also downloaded another blogging client (MarsEdit), and attempted to re-create the problem there. Other Blogging Client displays the same date/time as is stored in WordPress; reposting the entry does not cause the date/time in Other Blogging Client to change.
That is only until you move your local machine to another time zone and post from there, or even wait a few weeks, till we enter DST, and fetch one of your current posts ;)
Which leads me to suspect that the problem is somehow specific to TextMate or the Blogging Bundle.
Well, the problem is a bad standard. It will work if you set your server to UTC, but then other blogging clients may fail, as they may assume your server is in the same TZ as your local machine.
It’s not a real problem as long as you do not re-post with the wrong date stamp. There is an extension added to WordPress that allows for dates to be passed with TZ info, but the blogging bundle does not support it.
On Mar 19, 2008, at 1:04 PM, Allan Odgaard wrote:
On 19 Mar 2008, at 17:57, Punkin @ Mag3.14159 wrote:
[...] After posting via TextMate, the post gets sent back down to TextMate with various meta-data filled in. Among this meta-data is the date field. This date is being offset back by 4 hours, although the actual post within WP has the correct time.
Some info about the problem to be found here: http://wiki.macromates.com/Blogging/WordPress
Aah! I didn't even think of looking in the Wiki. Thank you for the link, and the very helpful explanations.
Gwen