1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Warning: strtotime() [function.strtotime]:

Discussion in 'Site & Server Administration' started by bbrian017, Sep 6, 2011.

  1. #1
    When I go and update my profile it's throwing these errors.

    Warning: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting 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 'America/Denver' for 'MST/-7.0/no DST' instead in /var/www/vhosts/websitename.com/httpdocs/libs/utils.php on line 95
    Code (markup):
    I've done some searching and it seems this issue is solved by editing the php.ini file and adding the time zone your server is in right?

    1. how to tell what time zone my server is in?
    2. Where to add this code in the php.ini file

    Thanks,

    Brian
     
    bbrian017, Sep 6, 2011 IP
  2. cPAce

    cPAce Peon

    Messages:
    445
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #2
    There is a few different ways you can go about this.

    You could ask your host what timezone the server is in. However, most webhosts do not allow access to php.ini files for obvious security reasons.

    If you can PM me the site URL, I can take a closer look and verify if that is indeed the issue.
     
    cPAce, Sep 6, 2011 IP
    bbrian017 likes this.
  3. bbrian017

    bbrian017 Well-Known Member

    Messages:
    2,990
    Likes Received:
    66
    Best Answers:
    0
    Trophy Points:
    170
    #3
    Hi cPAce's,

    Because I have a fully dedicated server I have full root access.

    I went into the php.ini file and added the following,

    
    ; [url]http://php.net/date.timezone[/url]
    date.timezone = America/New_York
    Code (markup):
     
    bbrian017, Sep 7, 2011 IP
  4. cPAce

    cPAce Peon

    Messages:
    445
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Sorry for the long delay in response.

    If you have a dedicated server with cPanel on it, you can easily change the timezone in the WHM under the first section on the top left. Make sure you restart your MySQL service afterwards or it could cause some issues with email clients mainly like Roundcube.
     
    cPAce, Nov 21, 2011 IP
  5. bbrian017

    bbrian017 Well-Known Member

    Messages:
    2,990
    Likes Received:
    66
    Best Answers:
    0
    Trophy Points:
    170
    #5
    No I have plesk
     
    bbrian017, Nov 26, 2011 IP