Maybe, but I think that this involves the strtotime() function. In the examples listed above I manipulated the $_SERVER['REQUEST_TIME'] and printed the time() values as well as the unmanipulated $_SERVER['REQUEST_TIME'] and the $qdate value and as you can see they are unchanged from page 1 to page 2 just as it should be, but strtotime() seems to think that the current UNIX timestamp is different depending on the page. I am using php 5.2.8. This means to me that somehow the UNIX timestamp is being manipulated, but not by any method I am familiar with.
If I find the answer I'll try to post something here.
Code:
echo date_default_timezone_get() . ' => ' . date('e') . ' => ' . date('T');
Will echo on a WordPress included page and
Code:
America/Denver => America/Denver => MDT
on a non WordPress page.
EDIT: Solved it.
Code:
date_default_timezone_set('America/Los_Angeles');
will set the timezone to the correct timezone. The UTC value is pulled from many available sources and when none is available or the value is not formatted correctly you will get a UTC printed out as demonstrated above. Now to set it to Iowa/Illinois time where I live. I am not sure what happens with daylight savings time though, but I'll worry about that then, if it ever comes up.
Bookmarks