Time Zone And Browsers Ban Error

Started on the old forum in April 2007 · view the original in the archive · old links redirect here

41 replies · 3,968 views · started 19 years ago · 1 min read

TL;DR · summary of 41 replies
  • $tm = time(); should be replaced with $tm = time() + (16.5 * 60 * 60); to adjust the time zone.
  • The second problem, where browsers are not showing up in user profiles and statistics, might require checking for missing or incorrect database keys like PRIMARY KEYS.
  • Adding $timeadjust = (4 * 60 * 60); // +4 hours; to config.php could help adjust the time of your site.

Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.

6 participants
alesh Lead · 604 posts #1

hi.. .. cn any1 tell me where 2 change time zone 4 forum post and shoutbox? at main page i knw and it shows my time zone,but in shoutbox arhive and forum posts it shows another time zone.. . where 2 change that? and 2nd problem is that my script stoped showing users BROWSERS,so i cnt ban them! i cn only IP ban them! im at new host now and maybe sumthng was lost or mixed up during the transfer. so im asking where 2 look that error?thanx in advance

eeeeerrr....

Guest #2

damn if youre trying to change the time...maybe you shudnt do that nemore uz its almost impossible...but then why cant we get used to the time? External image (may be gone)

alesh Lead · 604 posts #3

what? its imposible 2 change time zone at forum posts? whys that? anyway how about browsers ban? my script stoped showing users browsers.. . and i cnt ban them.. ...just ip ban.. . . .nd thts hard.. . .cuz then all others with tht ip cnt register.. . . .

eeeeerrr....

alesh Lead · 604 posts #4

uhhhh i was wrong... . i can ban users.... but their browsers still wont show... .grrr so no1 wants 2 help me?

eeeeerrr....

Guest #5

just add putenv("TZ=Africa/Johannesburg"); to the config.php file, and all the time on your site will change. I use it mine. http://www.methos.co.za/wap

alesh Lead · 604 posts #6

hmmm whr in config.php file should i put that code? cn u show ur config here? delete pass though....lol

eeeeerrr....

alesh Lead · 604 posts #7

oh come on! sum1? my host is half of day in front of my time,so the difference is huge.. .. i dnt mind but the users realy bloody do! i searched the script but time zone is only adjustable at main page.. .nowhr else.... how cn i make at all my site equal time zone? pls

eeeeerrr....

subzero Super moderator Fellow · 3,954 posts #8

bro your time is aus time lol

where about you need in time ?

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

alesh Lead · 604 posts #9

bro your time is aus time lol

where about you need in time ?

lol i knw im on australian time... but i need croatian time....

i knw 2 adjust time at main page but at forums, chat, inbox,shoutbox, pop ups is australian time!!

i dnt care but my gf and other users making me crazy about it!!!

is there a way 2 change it???

eeeeerrr....

subzero Super moderator Fellow · 3,954 posts #10

in forums, chat, inbox,shoutbox, pop ups php files

look for $tm = time();

change that to

$tm ="$mytime";

in config.php

$hereNew_Time = time() + (23 * 60 * 60); $mytime=date("H:i",$hereNew_Time);

$hereNew_Time = time() + (23 * 60 * 60);

edit that to get your right time.............

or

try $tm = time() + (23 * 60 * 60);

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

alesh Lead · 604 posts #11

oh and thats it? oooooooooooookay thank u very much sub... once again

(the thank u word became very common in my vocabulary lol)

eeeeerrr....

subzero Super moderator Fellow · 3,954 posts #12

your welcome

what place you from?

so i can setup you right time zone script

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

alesh Lead · 604 posts #13

im from CROATIA, ZAGREB...

u cn c at my site main page , theres standing corect time!

eeeeerrr....

subzero Super moderator Fellow · 3,954 posts #14

so you have any problem let me know ok bro External image (may be gone)

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

alesh Lead · 604 posts #15

do not worry i will lol

eeeeerrr....

alesh Lead · 604 posts #16

okay i also found alot of this in script

$tmdt = date("d m Y - H:i:s", $tmstamp);

$shtm = time();

$shdt = date("d m y-H:i", $item[3])

should i change that too???

eeeeerrr....

thunderwap Developer · 169 posts #17

okay i also found alot of this in script

$tmdt = date("d m Y - H:i:s", $tmstamp); $shtm = time(); $shdt = date("d m y-H:i", $item[3]) should i change that too???

no there is no wrong in ur server. sometimes server goes down

WANT GOOD CHEAP HOSTING WITH 99% UPTIME? THEN PM ME FOR DETAILS!!

alesh Lead · 604 posts #18

no there is no wrong in ur server. sometimes server goes down

haaaaaaaa??? no im confused as fish on the field.... lol

eeeeerrr....

Guest #19
<?php $dbname = "XXXX"; //change to your mysql database name $dbhost = "localhost"; //database host name $dbuser = "XXXX"; $dbpass = "XXXX"; $max_buds=1000; //maximum number of buds $topic_af = 120; //topic antiflood $post_af = 45; //post antiflood $onver = true; //isonline versoion putenv("TZ=Africa/Johannesburg"); $sitetitle = "MethosWap"; ?>

Link for timezones http://www.theprojects.org/dev/zone.txt

Here is my config.php file. hope this helps.

alesh Lead · 604 posts #20
<?php $dbname = "XXXX"; //change to your mysql database name $dbhost = "localhost"; //database host name $dbuser = "XXXX"; $dbpass = "XXXX"; $max_buds=1000; //maximum number of buds $topic_af = 120; //topic antiflood $post_af = 45; //post antiflood $onver = true; //isonline versoion putenv("TZ=Africa/Johannesburg"); $sitetitle = "MethosWap"; ?>

Link for timezones http://www.theprojects.org/dev/zone.txt

Here is my config.php file. hope this helps.

nope it doesnt work...... i guess ill have 2 do wht subzero said

eeeeerrr....

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close