Timezone error -.-

Results 1 to 10 of 10
  1. #1
    Account Upgraded | Title Enabled! fuxpro321 is offline
    MemberRank
    Jun 2010 Join Date
    266Posts

    Timezone error -.-

    Code:
    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\Guard.php on line 11
    1
    i use the php protection script by Guy


    php.ini
    [Date]
    ; Defines the default timezone used by the date functions
    ;date.timezone = "Asia/Singapore"


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

    Re: Timezone error -.-

    Make it : date.timezone = Etc/GMT+8. Also, make sure it's not commented like it is now (with the ; before it).

  3. #3
    Account Upgraded | Title Enabled! fuxpro321 is offline
    MemberRank
    Jun 2010 Join Date
    266Posts

    Re: Timezone error -.-

    do i need to put like singapore/GMT+8?

    OR only GMT +8

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

    Re: Timezone error -.-

    I already told you with what you have to replace it. Scroll up.

  5. #5
    Account Upgraded | Title Enabled! fuxpro321 is offline
    MemberRank
    Jun 2010 Join Date
    266Posts

    Re: Timezone error -.-

    ok i tested with Singapore/GMT+8.00 (dosent work
    Singapore/GMT+8 (dosent work also)
    Asia/GMT+8(dosent work)
    Asia/GMT+8.00(dosent work)

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

    Re: Timezone error -.-

    Don't you understand simple English? I already told you what to put in but you went and tried your own stuff.

    Just make it date.timezone = Etc/GMT+8

  7. #7
    Account Upgraded | Title Enabled! fuxpro321 is offline
    MemberRank
    Jun 2010 Join Date
    266Posts

    Re: Timezone error -.-

    Ohh sorry i miss looked the post

    edit: date.timezone = Etc/GMT+8 ( dosent work)
    Last edited by fuxpro321; 27-12-10 at 09:20 AM.

  8. #8
    Proficient Member Nekroido is offline
    MemberRank
    Mar 2007 Join Date
    『サイレンLocation
    185Posts

    Re: Timezone error -.-

    Just put this line somwhere in the beginning of index.php or that Guard.php:

    PHP Code:
    date_default_timezone_set("Asia/Singapore"); 
    PS: Feel free to ask me any PHP related questions. ;)

  9. #9
    Account Upgraded | Title Enabled! fuxpro321 is offline
    MemberRank
    Jun 2010 Join Date
    266Posts

    Re: Timezone error -.-

    it worked !HEY php pro take a look at my ipbanning thread
    Last edited by fuxpro321; 27-12-10 at 09:47 AM.

  10. #10
    DRGunZ 2 Creator wesman2232 is offline
    MemberRank
    Jan 2007 Join Date
    Erie, PALocation
    4,872Posts

    Re: Timezone error -.-

    Quote Originally Posted by Nekroido View Post
    Just put this line somwhere in the beginning of index.php or that Guard.php:

    PHP Code:
    date_default_timezone_set("Asia/Singapore"); 
    PS: Feel free to ask me any PHP related questions. ;)
    or set the timezone setting in php.ini.
    it works either way, but easier to do it in the php.ini so you don't have to keep adding that little code to the script.
    Last edited by wesman2232; 28-12-10 at 07:50 AM.



Advertisement