Buying To Fix A Small PHP Glitch

Discussion in 'Programming' started by Asad, May 3, 2014.

  1. #1
    I'm getting these errors on my website:

    Warning: strftime() [function.strftime]: 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 'Asia/Calcutta' for 'IST/5.0/no DST' instead in /home/clatgyan/public_html/ultimate/inc/functions.inc.php on line 119

    Warning: date() [function.date]: 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 'Asia/Calcutta' for 'IST/5.0/no DST' instead in /home/clatgyan/public_html/ultimate/inc/phpmailer/class.phpmailer.php on line 1406

    --

    I have no idea how PHP coding works. So, I want someone to fix this for me. Please PM along with your quote and amount of time you'll take. :)
     
    Asad, May 3, 2014 IP
  2. HowDoYou

    HowDoYou Well-Known Member

    Messages:
    443
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    130
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    Ill fix this for $5 paypal. It will only take a few minutes. I only need ftp access.
     
    HowDoYou, May 4, 2014 IP
  3. VegasHOOkUp

    VegasHOOkUp Peon

    Messages:
    7
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    3
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #3
    pm me.... i will fix it fast for u..
     
    VegasHOOkUp, May 4, 2014 IP
  4. edduvs

    edduvs Well-Known Member

    Messages:
    394
    Likes Received:
    31
    Best Answers:
    3
    Trophy Points:
    160
    As Seller:
    100% - 2
    As Buyer:
    100% - 0
    #4
    There's no fix needed, if you're default timezone is bad, just set the correct timezone in php.ini, if you don't have trouble with anything but that error bothers you, just go to the main file that includes all those files like index.php for example and write this at the start of the file. You'll get rid of any "warning" , only fatal errors will be shown.

    error_reporting(E_ALL ^ E_NOTICE);
    PHP:
     
    edduvs, May 7, 2014 IP
  5. Clone UI

    Clone UI Member

    Messages:
    11
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    35
    Digital Goods:
    10
    As Seller:
    100% - 2
    As Buyer:
    100% - 0
    #5
    Use this at the top of your file:

    date_default_timezone_set( $timezone_identifier )
    Code (php):
    Pick your time zone here: http://www.php.net/manual/en/timezones.php

    I'll gladly take your 5 bucks, LOL.
    Thanks.
     
    Clone UI, May 8, 2014 IP