Re: Time zones are spinning my brain

From: Date: Wed, 29 Jun 2011 16:43:05 +0000
Subject: Re: Time zones are spinning my brain
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-313809@lists.php.net to get a copy of this message
On Wed, 29 Jun 2011, Brian Dunning wrote:
$start = gmdate('Y-m-d\TH:i:s.00\Z', strtotime("yesterday 00:00:00")); $end = gmdate('Y-m-d\TH:i:s.00\Z', strtotime("yesterday 23:59:59"));
I think this is right, since it's 7 hours off California time, but I just need someone to double check my spinning head. Will this give me the PayPal transactions that arrived during California's yesterday, or do I need to change something?
Assuming your timezone is set to California time ( date_default_timezone_set ('America/Los_Angeles') ), then yes. Geoff.

« previous php.general (#313809) next »