php date() function displaying wrong time

Posted by ladaghini on Stack Overflow See other posts from Stack Overflow or by ladaghini
Published on 2010-05-03T03:49:51Z Indexed on 2010/05/03 3:58 UTC
Read the original article Hit count: 313

Filed under:
|
|
|

I'm building a site with wordpress, and when I use the date() function on an otherwise empty file, it shows the right date. However, if I use it in a file that includes other wordpress files, the time is displayed as GMT time, so the date is off.

If anyone can figure out how I can use date function without interruption from the wordpress methods, I'd appreciated it.

© Stack Overflow or respective owner

Related posts about Wordpress

Related posts about php