[EMAIL PROTECTED] (Tom Rogers) wrote in
news:[EMAIL PROTECTED]:
I have this in an auto_prepend file or you can put it before using any
of the date() functions
putenv('TZ=Australia/Brisbane');
But, but, that'll put the clock back 20 years and then add 30 minutes to
Central Standard time
how can get a specific time zone, not the server time.
example:
if the server time is 13:15:46 I need to output that time +5hours
so 18:15:46
because the hosting server time is not my local or other area time..
thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Best:
use gmmktime() and add the required offset by:
$time_here = gmmktime() + ( $offset * 60 * 60 ) ;
how can get a specific time zone, not the server time.
example:
if the server time is 13:15:46 I need to output that time +5hours
so 18:15:46
because the hosting server time is not my
Hi,
Tuesday, April 13, 2004, 9:29:19 PM, you wrote:
n how can get a specific time zone, not the server time.
n example:
n if the server time is 13:15:46 I need to output that time +5hours
n so 18:15:46
n because the hosting server time is not my local or other area time..
n thanks
I have
4 matches
Mail list logo