Timezone

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

13 replies · 1,866 views · started 19 years ago · 1 min read

4 participants
Guest #1

Is the time on your site not correct? Well with one line of code you can change all the time on your site.

Just add this to every page or you can put this in a php file and include it in every page.

putenv("TZ=Africa/Johannesburg");

just change the red to any of the following until your time is right. List Of TimeZones

wolf77ar Developer · 51 posts #2

Is the time on your site not correct? Well with one line of code you can change all the time on your site. Just add this to every page or you can put this in a php file and include it in every page.

putenv("TZ=Africa/Johannesburg");

just change the red to any of the following until your time is right. List Of TimeZones

Please tell me how to ajust time server in Rw script I follow your php code, I make one php file whith this code:

time.php

<? putenv("RO=Europe/Bucharest"); ?>

And after i put this line code in all files scripts include("time.php");

But dont work ![](http://www.2wap.org/forums/style_emoticons/<#EMO_DIR#>/sad.gif) My server its from Valey US And my contry its Romania whith local time Bucharest All the time in my script its changed whith 7 hours

echo "<a href="http://wapcomunity.ro">[-Enter Here-]</a>";

Guest #3

Please tell me how to ajust time server in Rw script I follow your php code, I make one php file whith this code:

time.php

<? putenv("RO=Europe/Bucharest"); ?>

And after i put this line code in all files scripts include("time.php");

But dont work ![](http://www.2wap.org/forums/style_emoticons/<#EMO_DIR#>/sad.gif) My server its from Valey US And my contry its Romania whith local time Bucharest All the time in my script its changed whith 7 hours

ok, you changed TZ to RO, change it back to TZ, TZ means TimeZone, and try again.

wolf77ar Developer · 51 posts #5

ok, you changed TZ to RO, change it back to TZ, TZ means TimeZone, and try again.

I changed back to TZ External image (may be gone) Not work I try to make another code to change Time Script Like this: $TimeZone="7"; //0 means server time $New_Time = time(7) + ($TimeZone * 60 * 60);// hours* 60 mins* 60secs $_time=date("H:i",$New_Time); I put this code in config.php But dont`t work in Rw script

echo "<a href="http://wapcomunity.ro">[-Enter Here-]</a>";

Guest #6

lol well i tried too

wolf77ar Developer · 51 posts #8

hahahah lol pmpl rofl just add this in config.php

date_default_timezone_set('Europe/your city'); Ex: date_default_timezone_set('Europe/Bucharest'); External image (may be gone)

date_default_timezone_set('Europe/Bucharest'); Is not correct php string I try this $date_default_timezone_set=('Europe/Bucharest'); But on my server not work External image (may be gone)

echo "<a href="http://wapcomunity.ro">[-Enter Here-]</a>";

alesh Lead · 604 posts #9

Is the time on your site not correct? Well with one line of code you can change all the time on your site. Just add this to every page or you can put this in a php file and include it in every page.

putenv("TZ=Africa/Johannesburg");

just change the red to any of the following until your time is right. List Of TimeZones

THAT DOESNT WORK 4 ME EITHER, BUT THERE IS OTHER SOLUTION! SEARCH IN UR SCRIPT 4 $tm = time(); (shoubox,forum,inbox,etc) AND REPLACE IT WITH $tm = time() + (23 * 60 * 60); (If it still doesnt show ur time zone,then replace that number 23 in $tm = time() + (23 * 60 * 60); into ur time zone. 4 eg i chaged it into $tm = time() + (16.5 * 60 * 60); and now its perfect)

oh btw that not came from my head lol subzero told me how 2 change it!!!!!!!!

eeeeerrr....

Guest #12

hahahah lol pmpl rofl just add this in config.php

date_default_timezone_set('Europe/your city'); Ex: date_default_timezone_set('Europe/Bucharest'); External image (may be gone)

..pmpl....a lu methos a mers;)..a tau pauza...

Guest #14

al meu merge asa cum l-am postat fara modificari cum a facut wolfy si nici methos...conteaza si serverul External image (may be gone)

si a lu methos merge;) fara modificari External image (may be gone)

<?php $dbname = ""; //change to your mysql database name $dbhost = "localhost"; //database host name $dbuser = ""; $dbpass = ""; putenv("TZ=Europe/Bucharest"); $max_buds=100; //maximum number of buds $topic_af = 120; //topic antiflood $post_af = 30; //post antiflood $onver = true; //isonline versoion ?>

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