<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>bbPress support forums Tag: offset</title>
<link>http://bbpress.org/forums/</link>
<description>bbPress support forums Tag: offset</description>
<language>en</language>
<pubDate>Tue, 02 Dec 2008 22:01:10 +0000</pubDate>

<item>
<title>dangrey on "GMT Offset"</title>
<link>http://bbpress.org/forums/topic/gmt-offset#post-15928</link>
<pubDate>Fri, 02 May 2008 11:55:43 +0000</pubDate>
<dc:creator>dangrey</dc:creator>
<guid isPermaLink="false">15928@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Hmmm, your fix caused a bit of breakage for me -- time zone is +1, but for some reason &#60;em&#62;two&#60;/em&#62; hours were added to the time stamp, resulting in a &#34;freshness&#34; of -1 year! (i.e., the timestamp was now in the future.&#60;/p&#62;
&#60;p&#62;Setting my time offset in General Settings to zero results in the correct time (GMT+1) being shown (server is on UTC btw), but the freshness is still -1 year lol.
&#60;/p&#62;</description>
</item>
<item>
<title>dangrey on "GMT Offset"</title>
<link>http://bbpress.org/forums/topic/gmt-offset#post-15926</link>
<pubDate>Fri, 02 May 2008 11:13:52 +0000</pubDate>
<dc:creator>dangrey</dc:creator>
<guid isPermaLink="false">15926@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;&#34;bb_current_time is in the functions file inside bb-includes directory. But you probably should touch that otherwise when you update bbpress, it will break again. :)&#34;&#60;/p&#62;
&#60;p&#62;Tell me about it -- I've already hacked another core file which has to be re-tweaked every upgrade... &#60;/p&#62;
&#60;p&#62;BTW isn't this a bug really?
&#60;/p&#62;</description>
</item>
<item>
<title>scooter7978 on "GMT Offset"</title>
<link>http://bbpress.org/forums/topic/gmt-offset#post-15922</link>
<pubDate>Fri, 02 May 2008 00:42:54 +0000</pubDate>
<dc:creator>scooter7978</dc:creator>
<guid isPermaLink="false">15922@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;bb_current_time is in the functions file inside bb-includes directory. But you probably should touch that otherwise when you update bbpress, it will break again. :)&#60;/p&#62;
&#60;p&#62;The SQL I used was just an interval clause...i.e. if I was going to import my current forums I would use something like:&#60;/p&#62;
&#60;p&#62;SELECT ID, Body, DateCreated - interval '9 30' hour_minute FROM current_forum_whatever&#60;/p&#62;
&#60;p&#62;This takes the date field and drops 9.5 hours off, coincidentally, my time zone.&#60;/p&#62;
&#60;p&#62;You could probably adapt this to an 'update' statement to change what's already in your database, eg:&#60;/p&#62;
&#60;p&#62;UPDATE bb_topics SET DateCreated=(SELECT DateCreated -  interval '9 30' hour_minute);&#60;/p&#62;
&#60;p&#62;I haven't tested it but it probably wouldn't be too far wrong.
&#60;/p&#62;</description>
</item>
<item>
<title>dangrey on "GMT Offset"</title>
<link>http://bbpress.org/forums/topic/gmt-offset#post-15906</link>
<pubDate>Thu, 01 May 2008 10:28:24 +0000</pubDate>
<dc:creator>dangrey</dc:creator>
<guid isPermaLink="false">15906@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Where can I find the bb_current_time function?&#60;/p&#62;
&#60;p&#62;Also could you post the SQL statement you used to fix existing date fields in the db? Thanks.
&#60;/p&#62;</description>
</item>
<item>
<title>scooter7978 on "GMT Offset"</title>
<link>http://bbpress.org/forums/topic/gmt-offset#post-15904</link>
<pubDate>Thu, 01 May 2008 05:44:55 +0000</pubDate>
<dc:creator>scooter7978</dc:creator>
<guid isPermaLink="false">15904@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;On thinking about it a bit further, I went back to my SQL posts and kludged a statement which removes 9.5 hours from the various date fields that populate the bbpress database.&#60;/p&#62;
&#60;p&#62;On restoring everything back, it's ok now.
&#60;/p&#62;</description>
</item>
<item>
<title>scooter7978 on "GMT Offset"</title>
<link>http://bbpress.org/forums/topic/gmt-offset#post-15903</link>
<pubDate>Thu, 01 May 2008 05:01:28 +0000</pubDate>
<dc:creator>scooter7978</dc:creator>
<guid isPermaLink="false">15903@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;I've been playing with bbPress for a few days and noticed that when I started posting the time was set all wrong and the posts I imported were dated wrong (only ones from that day).&#60;/p&#62;
&#60;p&#62;Since I'm in South Australia (+9.5 GMT) I had set the gmt_offset option in the admin interface to 9.5 to accomodate my differences but it wouldn't set the post date/time to my timezone when posting.&#60;/p&#62;
&#60;p&#62;The only way around it was to modify the bb_current_time function and change this line:&#60;/p&#62;
&#60;p&#62;$d = gmdate('Y-m-d H:i:s');&#60;/p&#62;
&#60;p&#62;to this:&#60;/p&#62;
&#60;p&#62;$d = gmdate('Y-m-d H:i:s', time() + 3600*(bb_get_option('gmt_offset')+date(&#34;I&#34;)));&#60;/p&#62;
&#60;p&#62;So that it actually uses the GMT offset.&#60;/p&#62;
&#60;p&#62;Of course, doing this only means that current posts are displayed at the right time but previous ones are wrong because they're all set to the current time when posted and the system then adds 9.5hrs onto them when being read.&#60;/p&#62;
&#60;p&#62;I'm assuming either I've missed something in the config or the time option just isn't using the gmt_offset value from the db for anything.&#60;/p&#62;
&#60;p&#62;Can someone confirm or refute this please? I'd like to be able to change it back and do it the proper way if possible.
&#60;/p&#62;</description>
</item>

</channel>
</rss>
