knowram Posted June 21, 2006 Share Posted June 21, 2006 Why is it not printing the time with regards to daylight savings time?it is 10pm and [code]echo date("g:i a");[/code]is saying that it is 11pm Link to comment https://forums.phpfreaks.com/topic/12509-date/ Share on other sites More sharing options...
poirot Posted June 21, 2006 Share Posted June 21, 2006 If you do this, it will print date based on the server's settings.These may help:[a href=\"http://www.php.net/phpinfo\" target=\"_blank\"]http://www.php.net/phpinfo[/a][a href=\"http://www.php.net/putenv\" target=\"_blank\"]http://www.php.net/putenv[/a] Link to comment https://forums.phpfreaks.com/topic/12509-date/#findComment-47918 Share on other sites More sharing options...
knowram Posted June 21, 2006 Author Share Posted June 21, 2006 from what I have been able to tell you are suggesting using the putenv function to set the time-zone. That makes sense but what if the site is used in more then one time-zone? Link to comment https://forums.phpfreaks.com/topic/12509-date/#findComment-48046 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.