View Single Post
Old 05-29-2008, 12:14 PM   #14 (permalink)
sketchMedia
The Prestige
Advanced Programmer Top Contributor Good Samaritan 
 
sketchMedia's Avatar
 
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
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(); 
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)

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