Shield.php problem!

Results 1 to 5 of 5
  1. #1
    Member min1jim is offline
    MemberRank
    Jan 2011 Join Date
    50Posts

    Shield.php problem!

    No idea whats wrong with it.
    This is my error in Shield.php

    Strict Standards: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for '8.0/no DST' instead in C:\AppServ\www\secure\shield.php on line 11

    Strict Standards: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for '8.0/no DST' instead in C:\AppServ\www\secure\shield.php on line 12

    Strict Standards: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for '8.0/no DST' instead in C:\AppServ\www\secure\shield.php on line 13

    Strict Standards: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for '8.0/no DST' instead in C:\AppServ\www\secure\shield.php on line 14

    Strict Standards: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for '8.0/no DST' instead in C:\AppServ\www\secure\shield.php on line 15
    This is the line on 11-15

    // Time
    $today = date("Y-m-j,G");
    $min = date("i");
    $sec = date("s");
    $r = substr(date("i"),0,1);
    $m = substr(date("i"),1,1);
    $minute = 0;


    Not sure why is this happenning, hope you guys can help me.
    Thanks if advance >;]
    Last edited by min1jim; 07-03-11 at 02:30 PM.


  2. #2
    Ā  Phoenix is offline
    ModeratorRank
    Mar 2009 Join Date
    6,890Posts

    Re: Shield.php problem!

    Open up php.ini (found somewhere in your webserver's directory) -> Search for "date.time" and change the time zone.

  3. #3
    Banned mhmd135 is offline
    BannedRank
    Jul 2010 Join Date
    437Posts

    Re: Shield.php problem!

    or remove the time from it

  4. #4
    Ecchi addicted adz28 is offline
    MemberRank
    Nov 2008 Join Date
    IkebukuroLocation
    524Posts

    Re: Shield.php problem!

    Open shield.php, then add this
    Code:
    date_default_timezone_set("America/Los_Angeles");
    after <?php. Now check if the message still appearing.
    Good luck hope it works
    Last edited by adz28; 07-03-11 at 11:34 PM.

  5. #5
    Member min1jim is offline
    MemberRank
    Jan 2011 Join Date
    50Posts

    Re: Shield.php problem!

    Quote Originally Posted by adz28 View Post
    Open shield.php, then add this
    Code:
    date_default_timezone_set("America/Los_Angeles");
    after <?php. Now check if the message still appearing.
    Good luck hope it works
    It works!
    -Liked-
    Thank you! :D



Advertisement