Please help me to solve this simple problem

Discussion in 'PHP' started by suman817, May 14, 2009.

  1. #1
    Recently I’ve installed AppServ Open Project - 2.6.0 for Windows as a local server. I used a little PHP code in my site " <? echo date('l d, M Y'); ?> " to show date in this format “ day date, month year ”. It worked fine in previous AppServ versions. But now the following error is coming:

    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 '6.0/no DST' instead in D:\AppServ\www\ritesinfo\header.php on line 19

    Friends, please give me the solution. I’ll be so grateful to you.
    Thanx
     
    suman817, May 14, 2009 IP
    fancymouj likes this.
  2. darren884

    darren884 Peon

    Messages:
    37
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Just seems its on your windows machine, its a warning. Put @ in front of it while your developing on the windows machine.
     
    darren884, May 15, 2009 IP
  3. suman817

    suman817 Well-Known Member

    Messages:
    1,777
    Likes Received:
    378
    Best Answers:
    0
    Trophy Points:
    175
    #3
    Yes, I'm testing it in local server. It works online. But I want such code that will work on localhost as well. Thanx.
     
    suman817, May 15, 2009 IP