View Single Post
  #1   (View Single Post)  
Old 24th October 2008
biscuits biscuits is offline
Port Guard
 
Join Date: Oct 2008
Posts: 10
Default Turn off daylight savings adjust??

Tearing my hair out on this problem at the moment: Perth (GMT +0800) comes into daylight savings this weekend (GMT +0900) and the automatic 1 hr shift is causing absolutely havoc with my PHP pages in the office.

I'm not sure if its FreeBSD 7.0 or PHP 4 doing it (suspect FreeBSD tho) but I really need to somehow turn off the automatic DST adjust and keep everything going along at GMT +0800 for the sake of my PHP scripts.

Basically the problem stems from if you get php to give the date today:

echo date(r); and you get: Wed, 24 Oct 2008 10:26:07 +0800

now if i set the date in FreeBSD to the 29th Oct say, i get: Wed, 29 Oct 2008 10:26:07 +0900

So one way or the other, i really need to fix the +0800 setting somehow??

Any idea how I might be able to accomplish this?

Thanks in advance,
Dave.
Reply With Quote