General time error help!

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

    General time error help!

    My site is 6 hour advance in philippines,
    in my script here's the code, i want to change in my country real time
    $hourdiff = "13";
    $New_Time = time() + ($hourdiff * 3600);
    $time=date("g:i a",$New_Time);
    $flipdate = date("l, d F Y g:i a",time() + ($hourdiff * 3600));
    print ("$flipdate");

    help pls!

    #2
    try changing the number 13 to 19 or to 7
    Creator of
    Epix.Mobi

    Keep an Eye on us Big things coming soon!!!!
    Need something for your site hit me up here

    http://coding-talk.com/forum/main-fo...r-your-wapsite

    Comment


      #3
      Ok, thanks, i'll try it tommorow, when i rent a pc, .

      Comment


        #4
        Code:
        .htaccess code
        SetEnv TZ Asia/Manila
        
        
        or 
        
        
        php_value date.timezone Asia/Manila
        
        
        or in config.php add this
        
        putenv("TZ=Asia/Manla");
        $timeadjust = (0 * 60 * 60);
        
        
        or in php.ini
        date.timezone = "Asia/Manila"
        
        
        <?php
         echo "".date("l d F Y")."<br/>\n";
        echo "".date("g:i:s a")."<br/>\n";
        ?>
        output
        Manila /Philippines
        Saturday 5 December 2009
         10:26:30 am

        Comment

        Working...
        X