Mantis - Quercus
Viewing Issue Advanced Details
3273 block always 01-16-09 01:49 01-18-09 06:53
koreth  
ferg  
urgent  
closed 4.0.0  
fixed  
none    
none 4.0.0  
0003273: date_default_timezone_set() doesn't work
<?php
date_default_timezone_set('PST');
print date('g:i', 0) . ' ';
date_default_timezone_set('America/New_York');
print date('g:i', 0);

Regular PHP prints "4:00 7:00". Quercus prints "4:00 4:00". (Substituting "EST" doesn't help; it seems to always use the local timezone.)

Notes
(0003754)
ferg   
01-18-09 06:53   
php/190t - the issue is the date() call, not date_default_timezone_set()