[Simplog-devel] Timezone Patch
Brought to you by:
f-bomb
From: Thomas A. C. <tc...@od...> - 2005-05-12 18:34:33
|
I just finished a timezone patch which will allow the owner of a blog to set the timezone for his or her blog. It inroduces a new database column to the table blog_list. The column is called tz_offset and holds an integer. The column is not null and defaults to '0'. The integer represents the number of hours to add or subtract from the server's time to get the local time. The blogging software now uses the local time (server time + offset) when storing comments or entries. To change the offset simply go to Blog Administration and change it. This code patches the May 12th cvs version of simplog. I have no idea if it will work with version 0.9.1 (the lastest stable release). If you have an exisiting blog and it does apply cleanly you'll have to alter the blog_list table to have a non-null integer column called tz_offset with a default value of 0. The code is available here: http://mediumbagel.org/code/timezone.patch |