View Single Post
Old 05-29-2008, 01:14 PM   #14 (permalink)
sketchMedia
The Frequenter
Advanced Programmer Top Contributor Good Samaritan 
 
Join Date: Oct 2007
Location: Manchester, UK
Posts: 469
Thanks: 26
sketchMedia is on a distinguished road
Default

i think you can use the date function to output the timezone offset in seconds by using the 'Z' param:
PHP Code:
echo date('Z'); 
or using the DateTime object:
PHP Code:
$dstOffset = new DateTime();
echo 
$dstOffset->getOffset(); 
__________________

Last edited by sketchMedia : 05-29-2008 at 01:15 PM. Reason: syntax error
sketchMedia is offline  
Reply With Quote