kanala Posted July 27, 2007 Share Posted July 27, 2007 I can't get this to work: date_default_timezone_set('Europe/London');$today = date("l j-n-y, G:i "); The time zone never works (error: Fatal error: Call to undefined function: date_default_timezone_set() in /home/www/takeawaydvds.com/messagemail.php on line 9)And the date never shows up properly the G:i bit.Thanks Link to comment Share on other sites More sharing options...
zppblood Posted July 27, 2007 Share Posted July 27, 2007 Are you using PHP 5.1.0 or higher? If not, it will not work for you. Link to comment Share on other sites More sharing options...
kanala Posted July 28, 2007 Author Share Posted July 28, 2007 Are you using PHP 5.1.0 or higher? If not, it will not work for you.I think I'm not, so how did the PHP 4.0 people do it? Link to comment Share on other sites More sharing options...
justsomeguy Posted July 28, 2007 Share Posted July 28, 2007 ini_set('date.timezone', 'Europe/London'); Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.