Page 1 of 1

Wrong time

PostPosted: Sat Apr 29, 2006 11:43 pm
Author: bbalegere
I am having a weird problem.
My IntegraMOD140 's forum is displaying the wrong.
It shows the wrong time for all timezones.
Can anybody help me?

Re: Wrong time

PostPosted: Sun Apr 30, 2006 12:33 am
Author: Helter
is your host in the same timezone as you? I assume you have set the timezone in the acp. Some hosts allow you to set your timezone from your webhost CPanel

PostPosted: Sun Apr 30, 2006 12:59 am
Author: bbalegere
How do I change the timezone through CPanel?

PostPosted: Sun Apr 30, 2006 1:03 am
Author: bbalegere
I have installed IntegraMod in one more server also.
Here also the time is displayed incorrectly.

Re: Wrong time

PostPosted: Sun Apr 30, 2006 1:22 am
Author: Helter
My host uses Plesk instead of CPanel and I can set my server time to what I want it to be. I do not know if Cpanel allows this. Am I understanding you correctly that you have correctly selected your time zone in the forum ACP, but it is still wrong? If this is the case, it is due to your server time. If you dont have access to change it in your web host control panel, I would suggest contacting your host and see it they can set this for you. Other wise you may have to do some math and adjust your acp timezone to be incorrect in order for your forum to display it correctly

PostPosted: Sun Apr 30, 2006 1:30 am
Author: bbalegere
I have the same problem with 2 different hosts.
The time is displayed wrong for all timezones.
And no timezone matches my time. GMT 5.5

Re: Wrong time

PostPosted: Sun Apr 30, 2006 2:43 am
Author: Helter
Code: Select all
 ################################################################ MOD Title]http://www.fablesoft.com#[/url]# MOD Description: Replace "GMT -N" junk in timezone select with sensible timestamps## MOD Version: 1.0.0#### Installation Level: Easy## Installation Time: ~1 Minutes## Files To Edit:##         language/lang_english/lang_main.php## Included Files: 0################################################################ For Security Purposes, Please Check: [url=http://www.phpbb.com/mods/#]http://www.phpbb.com/mods/#[/url]# for the latest version of this MOD. Downloading this MOD from## other sites could cause malicious code to enter into your phpBB## Forum. As such, phpBB will not offer support for MOD's not## offered in our MOD-Database, located at: [url=http://www.phpbb.com/mods/#]http://www.phpbb.com/mods/#[/url]############################################################### Author Notes:#### This mod uses a simple PHP function to compute current##   timestamps (formatted HH:MMam or HH:MMpm) to replace##   the "GMT + or - N" stuff in the timezone select dropdown.#### Note : This mod has been fully tested on a FreeBSD system,##   PHP documentation says there may be problems on windows##   machines with some of the GMT time functions. if you run##   into problems, please email a description of the problem##   to the author.################################################################## MOD History:####   2004-06-24 - Version 1.0.0##      - Initial release.################################################################## Before Adding This MOD To Your Forum, You Should Back Up##  All Files Related To This MOD##############################################################  ##-----[ OPEN ]------------------------------------------#language/lang_english/lang_main.php  ##-----[ FIND ]------------------------------------------#// These are displayed in the timezone select box$lang['tz']['-12'] = 'GMT - 12 Hours';$lang['tz']['-11'] = 'GMT - 11 Hours';$lang['tz']['-10'] = 'GMT - 10 Hours';$lang['tz']['-9'] = 'GMT - 9 Hours';$lang['tz']['-8'] = 'GMT - 8 Hours';$lang['tz']['-7'] = 'GMT - 7 Hours';$lang['tz']['-6'] = 'GMT - 6 Hours';$lang['tz']['-5'] = 'GMT - 5 Hours';$lang['tz']['-4'] = 'GMT - 4 Hours';$lang['tz']['-3.5'] = 'GMT - 3.5 Hours';$lang['tz']['-3'] = 'GMT - 3 Hours';$lang['tz']['-2'] = 'GMT - 2 Hours';$lang['tz']['-1'] = 'GMT - 1 Hours';$lang['tz']['0'] = 'GMT';$lang['tz']['1'] = 'GMT + 1 Hour';$lang['tz']['2'] = 'GMT + 2 Hours';$lang['tz']['3'] = 'GMT + 3 Hours';$lang['tz']['3.5'] = 'GMT + 3.5 Hours';$lang['tz']['4'] = 'GMT + 4 Hours';$lang['tz']['4.5'] = 'GMT + 4.5 Hours';$lang['tz']['5'] = 'GMT + 5 Hours';$lang['tz']['5.5'] = 'GMT + 5.5 Hours';$lang['tz']['6'] = 'GMT + 6 Hours';$lang['tz']['6.5'] = 'GMT + 6.5 Hours';$lang['tz']['7'] = 'GMT + 7 Hours';$lang['tz']['8'] = 'GMT + 8 Hours';$lang['tz']['9'] = 'GMT + 9 Hours';$lang['tz']['9.5'] = 'GMT + 9.5 Hours';$lang['tz']['10'] = 'GMT + 10 Hours';$lang['tz']['11'] = 'GMT + 11 Hours';$lang['tz']['12'] = 'GMT + 12 Hours';$lang['tz']['13'] = 'GMT + 13 Hours';  ##-----[ REPLACE WITH ]------------------------------------------#/* Begin NoMoreGMT! mod code by Jason Baker of Fablesoft.com */  //mytimestamp, this function generates sane representations of "GMT - 4"function mytimestamp($adjust){     $zone = 3600 * $adjust;     $tmptime = $mytime; //gmdate thrashes this value.     $hour = gmdate("H", time() + $zone);     $tmptime = $mytime;     $min = gmdate("i", time() + $zone);       $ampm = "";     if ($hour > 23) $hour = $hour - 24;     if ($hour <0> 12)     {         $hour = $hour - 12;         $ampm = "pm";     }     else     {         if ($hour == 0) $hour = 12;         $ampm = "am";     }         return $hour . ":" . $min . $ampm;}  $lang['tz']['-12'] = mytimestamp(-12);$lang['tz']['-11'] = mytimestamp(-11);$lang['tz']['-10'] = mytimestamp(-10);$lang['tz']['-9'] = mytimestamp(-9);$lang['tz']['-8'] = mytimestamp(-8);$lang['tz']['-7'] = mytimestamp(-7);$lang['tz']['-6'] = mytimestamp(-6);$lang['tz']['-5'] = mytimestamp(-5);$lang['tz']['-4'] = mytimestamp(-4);$lang['tz']['-3.5'] = mytimestamp(-3.5);$lang['tz']['-3'] = mytimestamp(-4);$lang['tz']['-2'] = mytimestamp(-3);$lang['tz']['-1'] = mytimestamp(-1);$lang['tz']['0'] = mytimestamp(0);$lang['tz']['1'] = mytimestamp(1);$lang['tz']['2'] = mytimestamp(2);$lang['tz']['3'] = mytimestamp(3);$lang['tz']['3.5'] = mytimestamp(3.5);$lang['tz']['4'] = mytimestamp(4);$lang['tz']['4.5'] = mytimestamp(4.5);$lang['tz']['5'] = mytimestamp(5);$lang['tz']['5.5'] = mytimestamp(5.5);$lang['tz']['6'] = mytimestamp(6);$lang['tz']['6.5'] = mytimestamp(6.5);$lang['tz']['7'] = mytimestamp(7);$lang['tz']['8'] = mytimestamp(8);$lang['tz']['9'] = mytimestamp(9);$lang['tz']['9.5'] = mytimestamp(9.5);$lang['tz']['10'] = mytimestamp(10);$lang['tz']['11'] = mytimestamp(11);$lang['tz']['12'] = mytimestamp(12);$lang['tz']['13'] = mytimestamp(13);  /* End NoMoreGMT! mod code by Jason Baker of Fablesoft.com */      ##-----[ SAVE/CLOSE ALL FILES ]------------------------------------------## EoM  

PostPosted: Sun Apr 30, 2006 3:11 am
Author: bbalegere
I get an eror

Fatal error: Cannot redeclare mytimestampp() (previously declared in /home/balegere/public_html/board/language/lang_english/lang_main.php:911) in /home/balegere/public_html/board/language/lang_english/lang_main.php on line 911

PostPosted: Sun Apr 30, 2006 11:08 pm
Author: bbalegere
Can anybody help PLz
The normal version of phpbb shows the time properly.
Please check this link where I have installed IntegraMOD
http://lefthandedgeek.be/forum/portal.php