Timezone

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Timezone

    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

    #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[/b]
    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 don`t work
    My server its from Valey US And my contry it`s Romania whith local time Bucharest
    All the time in my script its changed whith 7 hours

    Comment


      #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 don`t work
      My server its from Valey US And my contry it`s Romania whith local time Bucharest
      All the time in my script its changed whith 7 hours[/b]

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

      Comment


        #4
        tHANKS I WILL TRY THAT !

        Comment


          #5
          ok, you changed TZ to RO, change it back to TZ, TZ means TimeZone, and try again.[/b]
          I changed back to TZ 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

          Comment


            #6
            lol well i tried too

            Comment


              #7
              lol well i tried too[/b]
              hahahah lol pmpl rofl just add this in config.php

              date_default_timezone_set(&#39;Europe/your city&#39;);
              Ex: date_default_timezone_set(&#39;Europe/Bucharest&#39;);
              www.inbuzunar.mobi - Your mobile portal pocket

              Comment


                #8
                hahahah lol pmpl rofl just add this in config.php

                date_default_timezone_set(&#39;Europe/your city&#39;);
                Ex: date_default_timezone_set(&#39;Europe/Bucharest&#39;); [/b]
                date_default_timezone_set(&#39;Europe/Bucharest&#39;); Is not correct php string
                I try this $date_default_timezone_set=(&#39;Europe/Bucharest&#39;);
                But on my server not work

                Comment


                  #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[/b]

                  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!!!!!!!!
                  sigpiceeeeerrr....

                  Comment


                    #10
                    Lol A new Wapmaster

                    Comment


                      #11
                      Methos code work verry well
                      I put this for my counties putenv("TZ=Europe/Bucharest"); in config.php and now my script work whith Romanian real time
                      Thanks for methos code
                      Try to change TZ=Europe/Bucharest whith your Continent/Local GMT State from Methos Local Time List

                      Comment


                        #12
                        hahahah lol pmpl rofl just add this in config.php

                        date_default_timezone_set(&#39;Europe/your city&#39;);
                        Ex: date_default_timezone_set(&#39;Europe/Bucharest&#39;); [/b]
                        ..pmpl....a lu methos a mers;)..a tau pauza...

                        Comment


                          #13
                          ..pmpl....a lu methos a mers;)..a tau pauza...[/b]
                          al meu merge asa cum l-am postat fara modificari cum a facut wolfy si nici methos...conteaza si serverul
                          www.inbuzunar.mobi - Your mobile portal pocket

                          Comment


                            #14
                            al meu merge asa cum l-am postat fara modificari cum a facut wolfy si nici methos...conteaza si serverul [/b]
                            si a lu methos merge;) fara modificari
                            <?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
                            ?>

                            Comment

                            Working...
                            X