beaux1 Posted February 23, 2007 Share Posted February 23, 2007 Running PHP4.3.11, date_default_timezone_set is only supported in PHP5. Is there any alternative way around this? I want the time to be set to GMT, you see. Link to comment https://forums.phpfreaks.com/topic/39777-date_default_timezone_set-alternative/ Share on other sites More sharing options...
paul2463 Posted February 23, 2007 Share Posted February 23, 2007 try this link <a href="http://uk2.php.net/manual/en/function.gmmktime.php"> GMMKTIME</a> Link to comment https://forums.phpfreaks.com/topic/39777-date_default_timezone_set-alternative/#findComment-192062 Share on other sites More sharing options...
beaux1 Posted February 23, 2007 Author Share Posted February 23, 2007 <?php gmmktime(0, 0, 0, 1, 1, 1970); // valid in GMT and west, invalid in east ?> So what, is that GMT + 0 time? I just want it to set to GMT so when I echo using PHP's date function, it will output the right date. Link to comment https://forums.phpfreaks.com/topic/39777-date_default_timezone_set-alternative/#findComment-192068 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.