<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Module: Automatic Time Zones</title>
        <description>This module tries to automatically detect the visitor&#039;s time zone (using JavaScript) and adjusts the times shown in your forum accordingly. This will work for both logged in and anonymous users.

By default, all time zone offests will be automatically determined by the time zone offset on the visitor&#039;s computer. For authenticated users and anonymous users that have cookies enabled in their browser, the time zone will be checked once per day. If an anonymous visitor does not have cookies enabled, that visitor&#039;s IP address will be stored with the offset information. In this case the time zone will be checked every two hours to avoid issues with dynamic and/or roaming IP&#039;s.

In the settings page, the admin can allow registered users to override the automatic timezone with one of there own choosing. To use this option, you must enable the option &quot;Allow Time Zone Selection&quot; in the User Settings section of the General Settings page in the admin section as well.

Initial coding of this module idea was done by Joe Curia (a.k.a. Azumandias). Maurice Makaay did a full rewrite in version 6.0.0, making use of new Phorum features to make the module more efficient and to fix some small remaining bugs.

[code]
Changelog:
----------

2012-07-07 v6.0.2 (Maurice Makaay)

    - Fixed a PHP error:
          &quot;Unsupported operand types in .../include/format_functions.php on
		  line 248.&quot;

2011-04-02 v6.0.1 (Maurice Makaay)

    - Fixed a PHP warning:
      Missing argument 1 for phorum_mod_automatic_timezones_addon()

2011-04-01 v6.0.0 (Maurice Makaay)

    - A full rewrite of the module, taking Joe&#039;s ideas to the next level,
      making optimal use of new features in the Phorum core.

    - Extracted logic into a separate api.php, for code clarity. The module
      code has been simplified into using only three hooks.

    - Moved the javascript code into the global Phorum javascript (still
      only triggering this code when the timezone needs to be determined).

    - The module now uses the addon hook to handle posting the offset
      from the client to the module. The redirection code has been improved,
      to not have to fiddle with the active URL to include the offset in
      the request (which could cause issues with systems that use their own
      URL formatting schema for things like friendly URLs or embedding Phorum).

    - New offset caching mechanism, to minimize local impact:
      - When cookie storage is available for the client, then no local caching
        of offsets is done anymore.
      - When cookie storage is unavailable, then registered users will have
        their offset stored in the user&#039;s settings data. For unregistered
        users, the offset is cached based on the IP address of the user.
      - Keeping the IP-cache limited (to prevent db storage overflow) has
        been optimized to not delete all entries on overflow, but only
        to trim down the cache to 80% of the maximum allowed storage.

    - Fixed some buggy behavior that showed for users that configured their
      own timezone in the Control Center (when saving settings, the selected
      time zone was stored, but the settings panel would show the
      automatically determined time zone instead).

    - Fixed the bug that caused the PHP Notice &quot;Undefined index: REMOTE_ADDR
      in .../automatic_timezones.php on line 79&quot; when executing the
      script.php.

2009-04-02 v5.2.1.05 (Joe Curia)

    - Enhancement: Module rewritten to place the necessary javascript inside the
      header.  This allows for browsers without javascript to view the page
      without any negative consequences without the need for the excessive
      browscap support.  Thanks go to Phorum developer Maurice Makaay for
      pointing me in the right direction on this.

2009-03-28 v5.2.1.04 (Joe Curia)

    - Bugfix: Previous coding required the user&#039;s browser to support javascript.
      To work around this, the module now checks if the user&#039;s browser is
      capable of supporting javacript before running.  If the user has disabled
      javascript, a meta refresh will kick in after 2 seconds the first time
      they visit the forum.  After that their IP Address will be cached.
      Thanks go to Phorum user didi2 for reporting this bug.

    - Bugfix: Eliminated some PHP notices.

2009-02-04 v5.2.1.03 (Joe Curia)

    - Bugfix: Users in the GMT time zone (i.e. 0 offset) would experience an
      infinite loop.  Thanks go to Phorum user ExIslander for reporting this
      bug.

2008-12-15 v5.2.1.02 (Joe Curia)

    - Enhancement: Added support for the Recent Messages module and other
      modules which might call the phorum_api_user_save() function before
      displaying dates.

2008-10-22 v5.2.1.01 (Joe Curia)

    - Bugfix: Fixed a bug that caused the cc_panel hook in other modules to
      fail.  Thank you Maurice Makaay for this fix.

2008-10-20 v5.2.1.00 (Joe Curia)

    - Started.
[/code]

[b]Thanks go to these bug hunters:[b]
[url=http://www.phorum.org/phorum5/profile.php?62,4855]didi2[/url]
[url=http://www.phorum.org/phorum5/profile.php?62,5508]Exislander[/url]
[url=http://www.phorum.org/phorum5/profile.php?62,4487]James E.[/url]
[url=http://www.phorum.org/phorum5/profile.php?62,830]Maurice Makaay[/url]
[url=http://www.phorum.org/phorum5/profile.php?62,6565]Phil Connolly[/url]
[url=http://www.phorum.org/phorum5/profile.php?62,6397]Rob Granger[/url]</description>
        <link>https://www.phorum.org/support/read.php?62,133996,133996#msg-133996</link>
        <lastBuildDate>Tue, 08 Sep 2026 10:59:20 -0500</lastBuildDate>
        <generator>Phorum 6.0.4</generator>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,133996,155298#msg-155298</guid>
            <title>Re: Module: Automatic Time Zones</title>
            <link>https://www.phorum.org/support/read.php?62,133996,155298#msg-155298</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>Scott Finegan</strong><br />
In the automatic_timezones directory locate the info.txt file.<br />
Open it with a programmers text editor (not MS Word).<br />
<br />
Locate this line...<pre class="bbcode"> require_version: 5.2</pre>
Add a period and a zero   <pre class="bbcode"> require_version: 5.2.0</pre>
<br />
You should be able to enable the module. (I did not test beyond this point.)</div></blockquote>
<br />
Thanks Scott!<br />
<br />
I use linux myself so don&#039;t worry... Hahahahaha...<br />
<br />
Tested and confirmed working!!! I tested it using a VPN to show me the different timezones, and everything seems to be working so thanks for the solution!<br />
<br />
Cheers!]]></description>
            <dc:creator>TTV</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Mon, 01 Sep 2014 05:14:52 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,133996,155297#msg-155297</guid>
            <title>Re: Module: Automatic Time Zones</title>
            <link>https://www.phorum.org/support/read.php?62,133996,155297#msg-155297</link>
            <description><![CDATA[ In the automatic_timezones directory locate the info.txt file.<br />
Open it with a programmers text editor (not MS Word).<br />
<br />
Locate this line...<pre class="bbcode"> require_version: 5.2</pre>
Add a period and a zero   <pre class="bbcode"> require_version: 5.2.0</pre>
<br />
You should be able to enable the module. (I did not test beyond this point.)]]></description>
            <dc:creator>Scott Finegan</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Sun, 31 Aug 2014 09:41:47 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,133996,155296#msg-155296</guid>
            <title>Re: Module: Automatic Time Zones</title>
            <link>https://www.phorum.org/support/read.php?62,133996,155296#msg-155296</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>Thomas Seifert</strong><br />
if you can&#039;t turn it on you are probably running a version of phorum older than the one expected.</div></blockquote>
<br />
Nope running the latest version of Phorum and it is impossible to turn on...]]></description>
            <dc:creator>TTV</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Sat, 30 Aug 2014 08:31:19 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,133996,154829#msg-154829</guid>
            <title>Re: Module: Automatic Time Zones</title>
            <link>https://www.phorum.org/support/read.php?62,133996,154829#msg-154829</link>
            <description><![CDATA[ if you can&#039;t turn it on you are probably running a version of phorum older than the one expected.]]></description>
            <dc:creator>Thomas Seifert</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Fri, 10 Jan 2014 13:45:24 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,133996,154823#msg-154823</guid>
            <title>Re: Module: Automatic Time Zones</title>
            <link>https://www.phorum.org/support/read.php?62,133996,154823#msg-154823</link>
            <description><![CDATA[ Is the older version of this module still available? As I am unable to turn the latest version on.<br />
<br />
Thanks]]></description>
            <dc:creator>john62</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Wed, 08 Jan 2014 03:54:43 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,133996,152788#msg-152788</guid>
            <title>Re: Module: Automatic Time Zones</title>
            <link>https://www.phorum.org/support/read.php?62,133996,152788#msg-152788</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>dholeman</strong><br />
I just updated our site to v.6.0.2 and the module turned itself off and cannot be turned on. Reverting back to the previous version fixed this. Let me know if you want to follow this up and I&#039;ll forward the site specs and php config.</div></blockquote>
<br />
M2, I have the same problem, I removed, because there is now to (On) it, in Admin&gt;Phorum Module Settings.]]></description>
            <dc:creator>Toni</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Tue, 11 Dec 2012 22:05:59 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,133996,151826#msg-151826</guid>
            <title>Re: Module: Automatic Time Zones</title>
            <link>https://www.phorum.org/support/read.php?62,133996,151826#msg-151826</link>
            <description><![CDATA[ I just updated our site to v.6.0.2 and the module turned itself off and cannot be turned on. Reverting back to the previous version fixed this. Let me know if you want to follow this up and I&#039;ll forward the site specs and php config.]]></description>
            <dc:creator>dholeman</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Sat, 04 Aug 2012 21:57:00 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,133996,151690#msg-151690</guid>
            <title>Re: Module: Automatic Time Zones</title>
            <link>https://www.phorum.org/support/read.php?62,133996,151690#msg-151690</link>
            <description><![CDATA[ Thanks! That&#039;s the best kind of feedback ;)]]></description>
            <dc:creator>Maurice Makaay</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Fri, 13 Jul 2012 02:34:56 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,133996,151686#msg-151686</guid>
            <title>Re: Module: Automatic Time Zones</title>
            <link>https://www.phorum.org/support/read.php?62,133996,151686#msg-151686</link>
            <description><![CDATA[ Hi Maurice,<br />
<br />
Positive feedback. I&#039;ve just checked the last 24 hours of server logs and no sign of the error message.<br />
<br />
Thanks for your help.]]></description>
            <dc:creator>tankslap</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Thu, 12 Jul 2012 02:52:01 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,133996,151685#msg-151685</guid>
            <title>Re: Module: Automatic Time Zones</title>
            <link>https://www.phorum.org/support/read.php?62,133996,151685#msg-151685</link>
            <description><![CDATA[ That sounds reasonable.<br />
I&#039;ll add it to the module distro too.<br />
Thanks.]]></description>
            <dc:creator>Maurice Makaay</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Wed, 11 Jul 2012 06:40:56 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,133996,151684#msg-151684</guid>
            <title>Re: Module: Automatic Time Zones</title>
            <link>https://www.phorum.org/support/read.php?62,133996,151684#msg-151684</link>
            <description><![CDATA[ Hi Maurice,<br />
<br />
I&#039;ve just uploaded the new version to our server, I&#039;ll check the logs out tomorrow and see if the error has gone. <br />
<br />
FYI: the admin page complains about the phorum version number, I added an extra .0 to the minimum version number in the info.txt and that seemed to make it happy.]]></description>
            <dc:creator>tankslap</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Wed, 11 Jul 2012 02:41:13 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,133996,151672#msg-151672</guid>
            <title>Re: Module: Automatic Time Zones</title>
            <link>https://www.phorum.org/support/read.php?62,133996,151672#msg-151672</link>
            <description><![CDATA[ Hi Maurice,<br />
<br />
Thanks for you help, I&#039;ve been away for the weekend so will upload the new version this evening and let you know if it fixes the problem.]]></description>
            <dc:creator>tankslap</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Tue, 10 Jul 2012 04:57:57 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,133996,151659#msg-151659</guid>
            <title>Re: Module: Automatic Time Zones</title>
            <link>https://www.phorum.org/support/read.php?62,133996,151659#msg-151659</link>
            <description><![CDATA[ I think I found the problem. Please try version 6.0.2 of this module.]]></description>
            <dc:creator>Maurice Makaay</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Sat, 07 Jul 2012 05:24:11 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,133996,151652#msg-151652</guid>
            <title>Re: Module: Automatic Time Zones</title>
            <link>https://www.phorum.org/support/read.php?62,133996,151652#msg-151652</link>
            <description><![CDATA[ Hi Maurice,<br />
<br />
While trying to track down a totally separate issue for one of our user I noticed lots errors in the web server log:<br />
<br />
[Fri Jul 06 08:45:41 2012] [error] [client x.x.x.x] PHP Fatal error:  Unsupported operand types in /path/to/webroot/include/format_functions.php on line 248<br />
<br />
A quick search on the forum indicated that others had seen this issue and it was related to this module, the main offender appears to be a google bot so I would like to see if we can fix this to ensure the site is being index properly. I&#039;m running the latest version of phorum and this module, please let me know if there is any other information I can give you.<br />
<br />
Thanks, Jon.]]></description>
            <dc:creator>tankslap</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Fri, 06 Jul 2012 03:14:14 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,133996,150614#msg-150614</guid>
            <title>Re: Module: Automatic Time Zones</title>
            <link>https://www.phorum.org/support/read.php?62,133996,150614#msg-150614</link>
            <description><![CDATA[ &gt;&gt; Update the require_version line to read 5.2.0 instead of 5.2.<br />
<br />
Worked for me too. Somebody should probably edit the info.txt files in both the tar and zip.]]></description>
            <dc:creator>dholeman</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Wed, 14 Dec 2011 23:51:42 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,133996,149994#msg-149994</guid>
            <title>Re: Module: Automatic Time Zones</title>
            <link>https://www.phorum.org/support/read.php?62,133996,149994#msg-149994</link>
            <description><![CDATA[ G&#039;day Maurice / Joe,<br />
<br />
Is it correct the Automatic timezone can&#039;t handle the extra half our offset we have in South Australia? We are on GMT +10:30 hours at the moment (GMT +9:30 hours + 1 hour DST = 10:30)<br />
<br />
I have the same issue with the Time Zone Offset in the General settings, no half hour offset.<br />
<br />
Anyway to workaround this?<br />
<br />
Cheers,<br />
AJ]]></description>
            <dc:creator>-AJ-</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Wed, 02 Nov 2011 00:36:30 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,133996,148786#msg-148786</guid>
            <title>Re: Module: Automatic Time Zones</title>
            <link>https://www.phorum.org/support/read.php?62,133996,148786#msg-148786</link>
            <description><![CDATA[ Just applied the change suggested to the info.txt and it works perfectly.<br />
<br />
Thanks for the amazingly fast response :D]]></description>
            <dc:creator>tankslap</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Tue, 17 May 2011 15:35:06 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,133996,148785#msg-148785</guid>
            <title>Re: Module: Automatic Time Zones</title>
            <link>https://www.phorum.org/support/read.php?62,133996,148785#msg-148785</link>
            <description><![CDATA[ Right, that should not happen. Try editing the info.txt for the module. Update the require_version line to read 5.2.0 instead of 5.2. I guess that the version check does not like the missing last digit here.<br />
<br />
I&#039;ll look into the version check code, to make sure that this doesn&#039;t happen for future Phorum versions. &quot;5.2&quot; should indicate &quot;5.2.0 or higher&quot; for sure.]]></description>
            <dc:creator>Maurice Makaay</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Tue, 17 May 2011 15:21:45 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,133996,148784#msg-148784</guid>
            <title>Re: Module: Automatic Time Zones</title>
            <link>https://www.phorum.org/support/read.php?62,133996,148784#msg-148784</link>
            <description><![CDATA[ Hi Maurice,<br />
<br />
I&#039;ve just downloaded and applied the update to this module and have a strange problem..<br />
<br />
<pre class="bbcode">
Minimum Phorum-Version requirement not met for module &quot;automatic_timezones&quot;
It requires at least version &quot;5.2&quot;, but the current version is &quot;5.2.14&quot;.
The module was disabled to avoid malfunction of your Phorum because of that requirement.</pre>
<br />
I know I am a little behind on phorum updates, but surely I shouldn&#039;t get this message ???<br />
<br />
Thanks, Jon.]]></description>
            <dc:creator>tankslap</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Tue, 17 May 2011 15:17:58 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,133996,148341#msg-148341</guid>
            <title>Re: Module: Automatic Time Zones</title>
            <link>https://www.phorum.org/support/read.php?62,133996,148341#msg-148341</link>
            <description><![CDATA[ I have published version 6.0.1. This version fixes a PHP warning:<br />
Missing argument 1 for phorum_mod_automatic_timezones_addon()<br />
<br />
The warning only results in a problem when PHP is configured to display warnings in the browser.]]></description>
            <dc:creator>Maurice Makaay</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Sat, 02 Apr 2011 14:03:37 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,133996,148325#msg-148325</guid>
            <title>Re: Module: Automatic Time Zones</title>
            <link>https://www.phorum.org/support/read.php?62,133996,148325#msg-148325</link>
            <description><![CDATA[ Thanks a lot ;)<br />
<br />
Kindest regards,<br />
Giam Teck Choon]]></description>
            <dc:creator>Giam Teck Choon</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Fri, 01 Apr 2011 11:16:43 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,133996,148324#msg-148324</guid>
            <title>Re: Module: Automatic Time Zones</title>
            <link>https://www.phorum.org/support/read.php?62,133996,148324#msg-148324</link>
            <description><![CDATA[ I have published a full rewrite of this module (version 6.0.0).<br />
<br />
This release improves the module by making use of new Phorum features and by keeping the local storage for caching offsets at a minimum level (put differently: when a cookie can be used, it will be used as the sole storage mechanism).<br />
<br />
This release also fixes a few remaining bugs  (also the bug reported by &quot;choon&quot; about the REMOTE_ADDR PHP warning when running script.php).]]></description>
            <dc:creator>Maurice Makaay</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Fri, 01 Apr 2011 07:49:08 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,133996,148223#msg-148223</guid>
            <title>Re: Module: Automatic Time Zones</title>
            <link>https://www.phorum.org/support/read.php?62,133996,148223#msg-148223</link>
            <description><![CDATA[ Hi Joe,<br />
<br />
Just a note.  When execute ./script.php (Forum Subscriptions module from you I believe) which suppose to be execute via command/crontab, I will get the following:<br />
<pre class="bbcode">
<span style="color:#FF0000">PHP Notice:  Undefined index: REMOTE_ADDR in /path/to/phorum/mods/automatic_timezones/automatic_timezones.php on line 79</span></pre>
<br />
Since <b>$_SERVER[&quot;REMOTE_ADDR&quot;]</b> is only available via serving via web server to web browsers, it isn&#039;t set in command line.  In fact the <b>$_SERVER</b> global variable won&#039;t be set if I remember correctly.  Is it possible for you to include a fix?  Something from:<br />
[code=&quot;php&quot; number=&quot;78&quot;]<br />
    //check if the time zone offset has been set by ip (only when cookies cannot be created)<br />
    if (isset($PHORUM[&quot;phorum_mod_automatic_timezones&quot;][&quot;offset_by_ip&quot;][$_SERVER[&quot;REMOTE_ADDR&quot;]]) &amp;&amp;<br />
       	$PHORUM[&quot;phorum_mod_automatic_timezones&quot;][&quot;offset_by_ip&quot;][$_SERVER[&quot;REMOTE_ADDR&quot;]][&quot;timestamp&quot;] + 7200 &gt; time())<br />
       	$offset_by_ip = $PHORUM[&quot;phorum_mod_automatic_timezones&quot;][&quot;offset_by_ip&quot;][$_SERVER[&quot;REMOTE_ADDR&quot;]][&quot;offset&quot;];<br />
<br />
[/code]<br />
To:<br />
[code=&quot;php&quot; number=&quot;78&quot;]<br />
    //check if the time zone offset has been set by ip (only when cookies cannot be created)<br />
    if (isset($_SERVER[&quot;REMOTE_ADDR&quot;])) {<br />
        if (isset($PHORUM[&quot;phorum_mod_automatic_timezones&quot;][&quot;offset_by_ip&quot;][$_SERVER[&quot;REMOTE_ADDR&quot;]]) &amp;&amp;<br />
            $PHORUM[&quot;phorum_mod_automatic_timezones&quot;][&quot;offset_by_ip&quot;][$_SERVER[&quot;REMOTE_ADDR&quot;]][&quot;timestamp&quot;] + 7200 &gt; time())<br />
       	    $offset_by_ip = $PHORUM[&quot;phorum_mod_automatic_timezones&quot;][&quot;offset_by_ip&quot;][$_SERVER[&quot;REMOTE_ADDR&quot;]][&quot;offset&quot;];<br />
    }<br />
<br />
[/code]<br />
I hope you get what I mean ;)<br />
<br />
If this is intended, please forgive my ignorant.<br />
<br />
Thanks for your great modules.<br />
<br />
Kindest regards,<br />
Giam Teck Choon]]></description>
            <dc:creator>Giam Teck Choon</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Wed, 23 Mar 2011 05:36:26 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,133996,144942#msg-144942</guid>
            <title>Re: Module: Automatic Time Zones</title>
            <link>https://www.phorum.org/support/read.php?62,133996,144942#msg-144942</link>
            <description><![CDATA[ sorry, diffed the code, I see you are checking for an empty array now, sorry for the extra post.<br />
love your mods, dude!]]></description>
            <dc:creator>Rob Granger</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Mon, 21 Jun 2010 11:57:21 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,133996,144941#msg-144941</guid>
            <title>Re: Module: Automatic Time Zones</title>
            <link>https://www.phorum.org/support/read.php?62,133996,144941#msg-144941</link>
            <description><![CDATA[ Joe, I am running 5.2.1.05. Did you patch the .php and keep the same version number?<br />
Thanks<br />
Rob<br />
<br />
Automatic Time Zones (version 5.2.1.05)<br />
This module automatically detects each visitor&#039;s time zone and adjusts the times shown in<br />
your forum accordingly, whether they are logged in or unregistered.<br />
Created by Joe Curia<br />
More info: web site • README • Changelog]]></description>
            <dc:creator>Rob Granger</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Mon, 21 Jun 2010 11:51:44 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,133996,144940#msg-144940</guid>
            <title>Re: Module: Automatic Time Zones</title>
            <link>https://www.phorum.org/support/read.php?62,133996,144940#msg-144940</link>
            <description><![CDATA[ Rob and Phil,<br />
<br />
Thanks for pointing out the various bugs which were causing those PHP notices.  I have patched them and included the fixes in v5.2.1.05 of this module.  Please redownload/install the module (the automatic_timezones.php file specifically) and the notices should go away.]]></description>
            <dc:creator>Joe Curia</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Mon, 21 Jun 2010 11:47:17 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,133996,144939#msg-144939</guid>
            <title>PHP notice: Undefined index: user</title>
            <link>https://www.phorum.org/support/read.php?62,133996,144939#msg-144939</link>
            <description><![CDATA[ User info:<br />
<br />
Anonymous user<br />
User IP address = 24.128.76.5<br />
<br />
Additional details:<br />
<br />
Message:<br />
<br />
PHP notice: Undefined index: user<br />
<br />
PHP notice generated at /home/ppbb/public_html/phorum/mods/automatic_timezones/automatic_timezones.php:122<br />
<br />
Back trace:<br />
<br />
Function phorum_mod_automatic_timezones_user_get called<br />
----<br />
Function call_user_func_array called at<br />
{path to Phorum}/common.php:1687<br />
----<br />
Function phorum_hook called at<br />
{path to Phorum}/include/api/user.php:1038<br />
----<br />
seeing a lot of these in the event logger, is there a fix or a way to not log them if they are harmless?<br />
Thanks<br />
rob<br />
<br />
<br />
<br />
Function phorum_api_user_get called at<br />
{path to Phorum}/include/api/user.php:2442<br />
----<br />
Function phorum_api_user_session_restore called at<br />
{path to Phorum}/common.php:590<br />
----<br />
Function require_once called at<br />
{path to Phorum}/ajax.php:27<br />
----<br />
<br />
Request info:<br />
<br />
HTTP_HOST = www.ppbb.com<br />
HTTP_REFERER = [<a href="http://www.ppbb.com/phorum/list.php?19" target="_blank"  rel="nofollow">www.ppbb.com</a>]<br />
REQUEST_URI = /phorum/ajax.php]]></description>
            <dc:creator>Rob Granger</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Mon, 21 Jun 2010 09:23:53 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,133996,143153#msg-143153</guid>
            <title>Re: Module: Automatic Time Zones</title>
            <link>https://www.phorum.org/support/read.php?62,133996,143153#msg-143153</link>
            <description><![CDATA[ Here is another undefined variable notice report:  $query_string and $separator in automatic_timezones.php will be undefined if $_SERVER[&quot;QUERY_STRING&quot;] is empty.  I see it show up occasionally in the Event Logger report.]]></description>
            <dc:creator>Phil Connolly</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Fri, 12 Feb 2010 15:49:54 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,133996,142181#msg-142181</guid>
            <title>Re: Module: Automatic Time Zones</title>
            <link>https://www.phorum.org/support/read.php?62,133996,142181#msg-142181</link>
            <description><![CDATA[ Hello, <br />
<br />
In function phorum_mod_automatic_timezones_start_output() I inserted an isset() check on your &#039;offset_by_ip&#039; index. No big deal but when I am debugging and I have php report notices and warnings, might as well eliminate these. <br />
<br />
You&#039;ll see the spot in the code where I bracketed the inserted condition with <br />
// Begin BosonHack <br />
... <br />
// End BosonHack <br />
<br />
regards, <br />
-phil.<br />
<br />
EDIT: Your bugfix has been included in the latest release and your patch attachment deleted. Thanks for the fix. ~ Joe Curia]]></description>
            <dc:creator>Phil Connolly</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Wed, 02 Dec 2009 19:25:06 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,133996,137509#msg-137509</guid>
            <title>Re: Module: Automatic Time Zones</title>
            <link>https://www.phorum.org/support/read.php?62,133996,137509#msg-137509</link>
            <description><![CDATA[ Cool. Works perfect! Thank you.]]></description>
            <dc:creator>didi2</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Thu, 02 Apr 2009 04:23:56 -0500</pubDate>
        </item>
    </channel>
</rss>
