I realised that the timezone on my blog is wrong. It was set to Australian time. I was going to change it, but then I realised that anything I’ve written since I left Australia now has the wrong time.
I looked for an easy way to retrospectively change the timezone on posts, but I couldn’t find anything. So I wrote a little plugin that does just that.
When you install and activate the plugin a new option will appear in the Bulk Actions menu of the Edit Posts screen. The new option is called Apply Timezone. You select posts from the list, then choose Apply Timezone and click Apply. The plugin will then change those posts to the current blog’s timezone. If you want to change them to a different timezone, change the blog’s timezone, apply it retrospectively, then change it back. Easy.
As a slight aside, I highly recommend Otto’s most excellent Automatic Timezone plugin. It allows you to choose your location and then sets the timezone automatically, including adjustments for DST. 🙂
Please backup your database before using this plugin. You can use the WP-DB-Backup plugin.
Get the code here.