I moved one of our old projects to new server. It runs PHP 5.2.x. There is a forum there and I found that date() PHP function randomly returns UTC time instead of local time. Searching Internet did not give any results. Next I found that date/time support changed in PHP since 5.1.x and now it is essential to set "date.timezone" directive correctly in php.ini. I did that and hope it will force date() to return proper time...
-
My TYPO3 book
Are you interested in TYPO3 extension programming? This is the first book on the subject. It is packed with the information you need. Get the book now and you can start developing your TYPO3 extensions or greatly improve your existing skills!
-
Support this site!
-
Pages
-
Categories
-
Most popular
-
Archives
- November 2008 (6)
- October 2008 (15)
- September 2008 (7)
- August 2008 (9)
- July 2008 (14)
- June 2008 (13)
- May 2008 (27)
- April 2008 (2)
- March 2008 (6)
- February 2008 (14)
- January 2008 (9)
- December 2007 (4)
- November 2007 (7)
- October 2007 (12)
- September 2007 (6)
- August 2007 (9)
- July 2007 (5)
- June 2007 (5)
- May 2007 (3)
- April 2007 (2)
- March 2007 (3)
- February 2007 (5)
- January 2007 (12)
- December 2006 (2)
- November 2006 (1)
- October 2006 (22)
- September 2006 (21)
- August 2006 (14)
have you tried the new DateTime object in PHP5.2?
Here is a good tutorial:
http://laughingmeme.org/2007/02/27/looking-at-php5s-datetime-and-datetimezone/
Greetin[..] from Laax :)
Fabrizio