We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 20371
    • 58 Posts
    Hi all.. I am having timezone setting dramas..

    If I unset the default timezone line in .htaccess I get a 500 error..

    so I tried including a php.ini file in any directory in which I thought code might be executed (pretty messy)
    <? 
    date_default_timezone_set  ( "Australia/Sydney"  ) 
    ?>

    but that hasnt worked..

    I’ve read something about including a snippet with some onload function? but I’m not sure how to go about that...
    sorry I’m pretty new to all this.
    thanks in advance./
      • 20371
      • 58 Posts
      heheh..

      found the correct syntax:

      date.timezone = "Australia/Sydney"