| 
 Posted by Erwin Moller on 11/23/07 12:17 
Erwin Moller wrote: 
> mkneze@gmail.com wrote: 
>> Hi guys, 
>> 
>> Is it somehow possible to disable DST in date() function? I am 
>> currently in UTC+1 timezone which has DST enabled but data i am 
>> processing are throughout the year in UTC+1 without DST. So, how can i 
>> disable automatic DST processing of date() function? 
>> 
>> Thanks in advance! 
>  
> Hi, 
>  
> Not 100% sure, but isn't this function made for that? 
> date_default_timezone_set() 
>  
 
addition: feed it 'Europe/London' for offset 0. 
I think. ;-) 
 
Be sure to test before believing me. :P 
 
Erwin 
 
> http://nl2.php.net/manual/en/function.date-default-timezone-set.php 
>  
> PHP5 and higher only. 
> Read the usercontributed notes for hints/links to solution in PHP4 
>  
> Hope that helps. 
>  
> Regards, 
> Erwin Moller
 
[Back to original message] 
 |