Hi, I'm a little confused with php's time and date.
The desired output I want from the functions is like this :
- Fri Aug 29 15:48:23 UTC+0800 2008
However, it seems that PHP doesn't even add GMT to the date string it returns by default..do I have to set it all the time with date_default_timezone_set function since the country will keep changing? (i can't set in ini file)
Example...
echo date("D M j G:i:s O T Y");
//Fri Aug 29 8:38:14 +0000 UTC 2008
date_default_timezone_set('Asia/Singapore');
echo date("D M j G:i:s O T Y");
//Fri Aug 29 16:38:14 +0800 SGT 2008
also, isn't there anyway to let the server return its correct time within its own timezone by default instead of GMT +0000 as default without setting anything in ini file?