On Tue, Oct 16, 2012 at 2:05 PM, Daniel Brown <danbrown@xxxxxxx> wrote: > On Tue, Oct 16, 2012 at 4:19 PM, Richard S. Crawford > <rscrawford@xxxxxxxxxxxx> wrote: > > > > Thanks for the suggestion. Unfortunately the problem seems to be that PHP > > thinks the America/Los_Angeles timezone is the same as EDT. I'm not sure > > how to approach this issue. > > Per list rules, just a gentle reminder: please don't top-post. > Sorry about that. I was getting very frustrated with the issue, and I forgot. I'll be sure to keep it in mind. > With regard to debugging your issue, it's extremely unlikely that > it's PHP's fault, since no one else has the same issue. However, it > does indeed sound as though there's a configuration mismatch or a bad > setting of the system clock (as suggested earlier by myself and > others). What's the output when you run the code below? > > <?php > > if (php_sapi_name() == 'cli') { > define('NL',PHP_EOL); > } else { > define('NL','<br/>'.PHP_EOL); > } > > echo date_default_timezone_get().NL; > > echo date('r').NL; > > echo gmdate('r').NL; > > echo time().' ('.date('Z').')'.NL; > > echo trim(`date`).NL; > > ?> > <http://www.php.net/unsub.php> > This is the output: America/Los_Angeles Tue, 16 Oct 2012 17:22:09 -0400 Tue, 16 Oct 2012 21:22:09 +0000 1350422529 (-14400) Tue Oct 16 17:22:09 EDT 2012 -- Sláinte, Richard S. Crawford (richard@xxxxxxxxxxxxx) http://www.underpope.com Publisher and Editor in Chief, Daikaijuzine (http://www.daikaijuzine.com)